Skip to content

Commit

Permalink
Ensure -noqgis images are properly tagged
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Oct 24, 2023
1 parent cfd7e26 commit 8655ee8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ jobs:
- name: Get version tag
id: get_tag
run: |
echo "tag=${GITHUB_REF:10}" >>$GITHUB_OUTPUT
if [ ${{ endsWith(github.ref, '-lts') }} = true ]; then
echo "tag=latest-lts,${GITHUB_REF:10}" >>$GITHUB_OUTPUT
echo "tag_latest=latest-lts" >>$GITHUB_OUTPUT
# Branch of JSON schema files to include
TAG=${GITHUB_REF:11}
echo "branch=${TAG/.[0-9]-lts/-lts}" >>$GITHUB_OUTPUT
else
echo "tag=latest,${GITHUB_REF:10}" >>$GITHUB_OUTPUT
echo "tag_latest=latest" >>$GITHUB_OUTPUT
# Branch of JSON schema files to include
echo "branch=master" >>$GITHUB_OUTPUT
fi
Expand All @@ -36,7 +37,7 @@ jobs:
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
dockerfile: Dockerfile-noqgis
buildargs: BRANCH
tags: "${{ steps.get_tag.outputs.tag }}-noqgis"
tags: "${{ steps.get_tag.outputs.tag }}-noqgis,${{ steps.get_tag.outputs.tag_latest }}-noqgis"

- name: Build and publish docker image
uses: elgohr/Publish-Docker-Github-Action@v5
Expand All @@ -48,4 +49,4 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
buildargs: BRANCH
tags: "${{ steps.get_tag.outputs.tag }}"
tags: "${{ steps.get_tag.outputs.tag }},${{ steps.get_tag.outputs.tag_latest }}"

0 comments on commit 8655ee8

Please sign in to comment.