Skip to content

Commit

Permalink
fixup! github/actions: revamp
Browse files Browse the repository at this point in the history
  • Loading branch information
tharvik committed May 7, 2024
1 parent 32e41b1 commit a3627da
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/publish-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ jobs:
permissions:
contents: read
packages: write
outputs:
digest: ${{ steps.build.outputs.digest }}
steps:
- uses: docker/login-action@v3
with:
Expand All @@ -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]
Expand All @@ -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 }}

0 comments on commit a3627da

Please sign in to comment.