Skip to content

Commit

Permalink
fix: review tagging definition
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-gomes committed Mar 1, 2024
1 parent 69361dd commit 82d74e0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/dockerx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ jobs:
- name: Set tag name based on branch
id: set_tag
run: |
if [[ "${{ github.ref_name }}" == "master" ]]; then
echo "tag=latest" >> $GITHUB_OUTPUT
else
if [[ "${{ github.ref_name }}" != "master" ]]; then
GITHUB_REFNAME=${{ github.ref_name }}
BRANCH_NAME=${GITHUB_REFNAME//\//_}
echo "tag=latest-$BRANCH_NAME" >> $GITHUB_OUTPUT
echo "tag=-$BRANCH_NAME" >> $GITHUB_OUTPUT
fi
- name: Build and push
uses: docker/build-push-action@v5
Expand All @@ -37,4 +35,4 @@ jobs:
file: Dockerfile.chromium
platforms: 'linux/amd64,linux/arm/v7,linux/arm64/v8'
push: true
tags: 'hivesolutions/headless-chromium:${{ steps.set_tag.outputs.tag }}'
tags: 'hivesolutions/headless:chromium${{ steps.set_tag.outputs.tag }}'

0 comments on commit 82d74e0

Please sign in to comment.