Also read labels from print layout templates #503
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | |
steps: | |
- uses: actions/checkout@master | |
- 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=latest-lts,latest-${GITHUB_REF:11:4}-lts" >>$GITHUB_OUTPUT | |
else | |
echo "tag_latest=latest" >>$GITHUB_OUTPUT | |
fi | |
- name: Build and publish docker image without qgis | |
uses: elgohr/Publish-Docker-Github-Action@v5 | |
if: github.event_name != 'pull_request' | |
with: | |
name: sourcepole/${{ github.event.repository.name }} | |
username: ${{ secrets.DOCKER_HUB_USER }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
dockerfile: Dockerfile-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 | |
if: github.event_name != 'pull_request' | |
with: | |
name: sourcepole/${{ github.event.repository.name }} | |
username: ${{ secrets.DOCKER_HUB_USER }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
tags: "${{ steps.get_tag.outputs.tag }},${{ steps.get_tag.outputs.tag_latest }}" |