Skip to content

Commit

Permalink
Fix tags
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusAhlfors authored Jan 3, 2025
1 parent f542927 commit 7258b69
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/Prebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,19 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set tags
id: set-tags
run: |
TAGS="${{ steps.meta.outputs.tags }}"
if [[ "${GITHUB_REF}" == "refs/heads/main" ]]; then
TAGS="${TAGS},${{ env.REGISTRY }}/${{ github.repository }}:latest"
fi
echo "tags=$TAGS" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v6
with:
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/arm64
tags: |
${{ steps.meta.outputs.tags }}
${{ github.ref == 'refs/heads/main' && env.REGISTRY + '/' + github.repository + ':latest' || '' }}
tags: ${{ env.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 7258b69

Please sign in to comment.