Also filter plugins without cfg block #406
Workflow file for this run
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: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Setting up python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Validate schema | |
run: | | |
python -m pip install check-jsonschema | |
check-jsonschema --check-metaschema schemas/qwc-map-viewer.json | |
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 image | |
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 stock image | |
uses: elgohr/Publish-Docker-Github-Action@v5 | |
if: github.event_name != 'pull_request' | |
env: | |
QWC2_URL: https://github.com/qgis/qwc2/releases/download/${{ steps.get_tag.outputs.app_version }}/qwc2-stock-app.zip | |
BASE_IMAGE_VERSION: ${{ steps.get_tag.outputs.app_version }} | |
with: | |
name: sourcepole/qwc-map-viewer | |
username: ${{ secrets.DOCKER_HUB_USER }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
tags: "${{ steps.get_tag.outputs.tag }}" | |
dockerfile: Dockerfile-qwc2-app | |
buildargs: QWC2_URL,BASE_IMAGE_VERSION | |
- name: Build and publish legacy demo image | |
uses: elgohr/Publish-Docker-Github-Action@v5 | |
if: github.event_name != 'pull_request' | |
env: | |
QWC2_URL: https://github.com/qgis/qwc2/releases/download/${{ steps.get_tag.outputs.app_version }}/qwc2-stock-app.zip | |
BASE_IMAGE_VERSION: ${{ steps.get_tag.outputs.app_version }} | |
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,BASE_IMAGE_VERSION |