-
Notifications
You must be signed in to change notification settings - Fork 7
74 lines (64 loc) · 3.39 KB
/
qgis-server.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Publish qwc-qgis-server docker images
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Get version tag QGIS 3 LTR
id: get_tag_qgis_3_ltr
run: |
VERSION_TRIPLE=$(curl -s https://ubuntu.qgis.org/ubuntu-ltr/dists/jammy/main/binary-amd64/Packages | grep -A 2 "Package: qgis-server$" | grep Version | head -1 | sed 's/^Version: 1:\(.*\)+.*/\1/')
VERSION_MINOR=$(curl -s https://ubuntu.qgis.org/ubuntu-ltr/dists/jammy/main/binary-amd64/Packages | grep -A 2 "Package: qgis-server$" | grep Version | head -1 | sed 's/^Version: 1:\([0-9]*\.[0-9]*\).*/\1/')
echo "version=$VERSION_TRIPLE" >> $GITHUB_OUTPUT
echo "minor=$VERSION_MINOR" >> $GITHUB_OUTPUT
echo "tags=$VERSION_TRIPLE,$VERSION_MINOR,latest-ltr" >> $GITHUB_OUTPUT
- name: Build and publish docker image for QGIS Server 3 LTR
uses: elgohr/Publish-Docker-Github-Action@v4
env:
QGIS_REPO: ubuntu-ltr
with:
name: sourcepole/qwc-qgis-server
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tags: "${{ steps.get_tag_qgis_3_ltr.outputs.tags }}"
workdir: .
buildargs: QGIS_REPO
- name: Build and publish docker image for QGIS Server 3 LTR with plugins
uses: elgohr/Publish-Docker-Github-Action@v4
env:
QGIS_VERSION: ${{ steps.get_tag_qgis_3_ltr.outputs.version }}
with:
name: sourcepole/qwc-qgis-server
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tags: "${{ steps.get_tag_qgis_3_ltr.outputs.version }}-plugins,${{ steps.get_tag_qgis_3_ltr.outputs.minor }}-plugins"
workdir: .
dockerfile: Dockerfile-plugins
buildargs: QGIS_VERSION
- name: Build and publish docker image for QGIS Server 3 LTR with ODBC driver
uses: elgohr/Publish-Docker-Github-Action@v4
env:
QGIS_VERSION: ${{ steps.get_tag_qgis_3_ltr.outputs.version }}
with:
name: sourcepole/qwc-qgis-server
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tags: "${{ steps.get_tag_qgis_3_ltr.outputs.version }}-odbc,${{ steps.get_tag_qgis_3_ltr.outputs.minor }}-odbc"
workdir: .
dockerfile: Dockerfile-odbc
buildargs: QGIS_VERSION
- name: Get version tag QGIS 3
id: get_tag_qgis_3
run: |
VERSION_TRIPLE=$(curl -s https://ubuntu.qgis.org/ubuntu/dists/jammy/main/binary-amd64/Packages | grep -A 2 "Package: qgis-server$" | grep Version | head -1 | sed 's/^Version: 1:\(.*\)+.*/\1/')
VERSION_MINOR=$(curl -s https://ubuntu.qgis.org/ubuntu/dists/jammy/main/binary-amd64/Packages | grep -A 2 "Package: qgis-server$" | grep Version | head -1 | sed 's/^Version: 1:\([0-9]*\.[0-9]*\).*/\1/')
echo "tags=$VERSION_TRIPLE,$VERSION_MINOR,latest" >> $GITHUB_OUTPUT
- name: Build and publish docker image for QGIS Server 3
uses: elgohr/Publish-Docker-Github-Action@v4
with:
name: sourcepole/qwc-qgis-server
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tags: "${{ steps.get_tag_qgis_3.outputs.tags }}"
workdir: .