Skip to content

Commit

Permalink
Improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Giacomo Licari committed Dec 1, 2023
1 parent 9fd6d83 commit 6a065d7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ jobs:
run: |
echo "VERSION=$(echo ${GITHUB_REF#refs/tags/})" >> $GITHUB_ENV
echo "VERSION_SUFFIX=" >> $GITHUB_ENV
- name: Extract version (if hopr)
if: github.event.ref == 'refs/heads/hopr'
run: |
echo "VERSION=latest" >> $GITHUB_ENV
echo "VERSION_SUFFIX=-hopr" >> $GITHUB_ENV
outputs:
VERSION: ${{ env.VERSION }}
VERSION_SUFFIX: ${{ env.VERSION_SUFFIX }}
Expand Down Expand Up @@ -121,7 +126,7 @@ jobs:
context: .
platforms: linux/${{ env.SHORT_ARCH }}
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: ${{ env.VERSION }}-${{ env.SHORT_ARCH }}${{ env.VERSION_SUFFIX }}
labels: ${{ steps.meta.outputs.labels }}

# build-docker-multiarch:
Expand Down

0 comments on commit 6a065d7

Please sign in to comment.