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 }}