Skip to content

Update to qwc-services-core==1.3.29 #313

Update to qwc-services-core==1.3.29

Update to qwc-services-core==1.3.29 #313

Workflow file for this run

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: |
if [ ${{ endsWith(github.ref, '-lts') }} = true ]; then
echo "tag=latest-lts,latest-${GITHUB_REF:11:4}-lts,${GITHUB_REF:10}" >>$GITHUB_OUTPUT
else
echo "tag=latest,${GITHUB_REF:10}" >>$GITHUB_OUTPUT
fi
echo "app_version=${GITHUB_REF:10}" >>$GITHUB_OUTPUT
- name: Build and publish base container
uses: elgohr/Publish-Docker-Github-Action@v5
if: github.event_name != 'pull_request'
with:
name: sourcepole/qwc-map-viewer-base
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tags: "${{ steps.get_tag.outputs.tag }}"
- name: Build and publish demo container
uses: elgohr/Publish-Docker-Github-Action@v5
if: github.event_name != 'pull_request'
env:
QWC2_URL: https://github.com/qgis/qwc2-demo-app/releases/download/${{ steps.get_tag.outputs.app_version }}/qwc2-demo-app.zip
with:
name: sourcepole/qwc-map-viewer-demo
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tags: "${{ steps.get_tag.outputs.tag }}"
dockerfile: Dockerfile-qwc2-app
buildargs: "QWC2_URL"