From a3627dab73191d2e3462a9a5b9f367a9b01a2b70 Mon Sep 17 00:00:00 2001 From: tharvik Date: Tue, 7 May 2024 14:28:33 +0200 Subject: [PATCH] fixup! github/actions: revamp --- .github/workflows/publish-deploy.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-deploy.yml b/.github/workflows/publish-deploy.yml index 94499705e..dffbdfb12 100644 --- a/.github/workflows/publish-deploy.yml +++ b/.github/workflows/publish-deploy.yml @@ -54,6 +54,8 @@ jobs: permissions: contents: read packages: write + outputs: + digest: ${{ steps.build.outputs.digest }} steps: - uses: docker/login-action@v3 with: @@ -70,10 +72,6 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - - run: | - echo id=${{ steps.build.outputs.imageid }} >> "$GITHUB_OUTPUT" - echo digest=${{ steps.build.outputs.digest }} >> "$GITHUB_OUTPUT" - cat "$GITHUB_OUTPUT" deploy-server: needs: [publish-github-container] @@ -91,5 +89,5 @@ jobs: with: service: disco project_id: disco-367212 - image: europe-west6-docker.pkg.dev/disco-367212/github/epfml/disco:${{ needs.publish-github-container.outputs.id }} region: europe-west6 + image: europe-west6-docker.pkg.dev/disco-367212/github/epfml/disco:${{ needs.publish-github-container.outputs.digest }}