Skip to content

Commit

Permalink
ci: push microservices on tag
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Guidée <[email protected]>
  • Loading branch information
quentinguidee committed Mar 4, 2024
1 parent 398d051 commit 1aaffa6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v5
with:
push: ${{ github.ref == 'refs/heads/main' }}
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }}
context: server
file: server/docker/micro.Dockerfile
tags: ${{ steps.meta.outputs.tags }}
Expand Down Expand Up @@ -189,6 +189,7 @@ jobs:
run: |
IMAGES="vertex-bundle vertex-bundle-kernel vertex-admin vertex-auth vertex-containers vertex-containers-kernel vertex-logs vertex-monitoring vertex-reverseproxy vertex-sql vertex-tunnels"
for IMAGE in $IMAGES; do
echo "Promoting $IMAGE:${{ format('{0}', github.ref_name) }} to latest"
docker pull ghcr.io/${{ github.repository_owner }}/"$IMAGE":${{ format('{0}', github.ref_name) }}
docker tag ghcr.io/${{ github.repository_owner }}/"$IMAGE":${{ format('{0}', github.ref_name) }} ghcr.io/${{ github.repository_owner }}/"$IMAGE":latest
docker push ghcr.io/${{ github.repository_owner }}/"$IMAGE":latest
Expand Down

0 comments on commit 1aaffa6

Please sign in to comment.