-
Notifications
You must be signed in to change notification settings - Fork 7
61 lines (52 loc) · 1.94 KB
/
qwc-base-db.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
name: Publish qwc-base-db docker images
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,${GITHUB_REF:10}" >>$GITHUB_OUTPUT
else
echo "tag=latest,${GITHUB_REF:10}" >>$GITHUB_OUTPUT
fi
- name: Build and publish qwc-base-db docker image for pg 13
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: sourcepole/qwc-base-db
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tags: "13"
workdir: .
buildargs: "PG_MAJOR=13"
- name: Build and publish qwc-base-db docker image for pg 14
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: sourcepole/qwc-base-db
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tags: "14"
workdir: .
buildargs: "PG_MAJOR=14"
- name: Build and publish qwc-base-db docker image for pg 15
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: sourcepole/qwc-base-db
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tags: "15"
workdir: .
buildargs: "PG_MAJOR=15"
- name: Build and publish qwc-base-db-migrate docker image
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: sourcepole/qwc-base-db-migrate
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tags: "${{ steps.get_tag.outputs.tag }}"
workdir: .
dockerfile: Dockerfile.migrate