forked from OSGeo/grass
-
Notifications
You must be signed in to change notification settings - Fork 0
184 lines (178 loc) · 7.28 KB
/
docker.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
---
name: Docker
# This workflow builds and pushes docker images to dockerhub
#
# Summary
#
# job docker-os-matrix:
# * creates tags <version>-alpine, <version>-debian and <version>-ubuntu for each release
# * creates tags <branch_name>-alpine, <branch_name>-debian and <branch_name>-ubuntu for all triggered branches
# * creates tags current-alpine, current-debian and current-ubuntu for releasebranch_8_3
# * creates tag latest for last stable release with ubuntu os
on:
push:
branches:
- main
- releasebranch_*
- '!releasebranch_7_*'
# tags: ['*.*.*']
paths-ignore: [doc/**]
release:
types: [published]
jobs:
# Run for push to configured branches and all published releases.
# Take care of different os.
# For main branch, created tags are:
# main-alpine, main-debian, main-ubuntu
# For releasebranch_8_3, created tags are:
# current-alpine, current-debian, current-ubuntu,
# releasebranch_8_3-alpine, releasebranch_8_3-debian, releasebranch_8_3-ubuntu
# For a release, e.g. 8.3.0, created tags are:
# 8.3.0-alpine, 8.3.0-debian, 8.3.0-ubuntu and latest (with ubuntu)
docker-os-matrix:
name: build and push ${{ matrix.os }} for ${{ github.ref }}
if: github.repository_owner == 'OSGeo'
runs-on: ubuntu-latest
strategy:
matrix:
os:
- alpine
- debian
- ubuntu
- ubuntu_wxgui
fail-fast: false
steps:
- name: Checkout
<<<<<<< HEAD
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
=======
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
>>>>>>> d4a11a7eae (CI(deps): Update actions/checkout action to v4.1.7 (#3801))
with:
fetch-depth: 0
- name: Docker meta
id: meta
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
with:
images: osgeo/grass-gis
tags: |
type=ref,event=tag
type=ref,event=branch
type=raw,value=current,enable=${{ github.ref == format('refs/heads/{0}', 'releasebranch_8_3') }}
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/8.3') && matrix.os == 'ubuntu' }},suffix=
flavor: |
latest=false
suffix=-${{ matrix.os }}
- name: Set up QEMU
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
uses: docker/setup-qemu-action@5927c834f5b4fdf503fca6f4c7eccda82949e1ee # v3.1.0
=======
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
=======
uses: docker/setup-qemu-action@5927c834f5b4fdf503fca6f4c7eccda82949e1ee # v3.1.0
>>>>>>> 3cc60fd2e1 (CI(deps): Update docker/setup-qemu-action action to v3.1.0 (#3977))
>>>>>>> 863363eed2 (CI(deps): Update docker/setup-qemu-action action to v3.1.0 (#3977))
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4fd812986e6c8c2a69e18311145f9371337f27d4 # v3.4.0
=======
=======
>>>>>>> b1d58bd45a (CI(deps): Update docker/setup-qemu-action action to v3.1.0 (#3977))
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
=======
uses: docker/setup-qemu-action@5927c834f5b4fdf503fca6f4c7eccda82949e1ee # v3.1.0
>>>>>>> 3cc60fd2e1 (CI(deps): Update docker/setup-qemu-action action to v3.1.0 (#3977))
- name: Set up Docker Buildx
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
uses: docker/setup-buildx-action@aa33708b10e362ff993539393ff100fa93ed6a27 # v3.5.0
>>>>>>> main
=======
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
>>>>>>> osgeo-main
=======
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
>>>>>>> osgeo-main
=======
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
=======
uses: docker/setup-buildx-action@4fd812986e6c8c2a69e18311145f9371337f27d4 # v3.4.0
>>>>>>> dd3ca8bfd8 (CI(deps): Update docker/setup-buildx-action action to v3.4.0 (#3982))
>>>>>>> a637b0f30a (CI(deps): Update docker/setup-buildx-action action to v3.4.0 (#3982))
=======
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
=======
uses: docker/setup-buildx-action@4fd812986e6c8c2a69e18311145f9371337f27d4 # v3.4.0
>>>>>>> dd3ca8bfd8 (CI(deps): Update docker/setup-buildx-action action to v3.4.0 (#3982))
>>>>>>> 409c190de6 (CI(deps): Update docker/setup-buildx-action action to v3.4.0 (#3982))
- name: Login to DockerHub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
uses: docker/build-push-action@1a162644f9a7e87d8f4b053101d1d9a712edc18c # v6.3.0
=======
uses: docker/build-push-action@5176d81f87c23d6fc96624dfdbcd9f3830bbe445 # v6.5.0
>>>>>>> main
=======
uses: docker/build-push-action@16ebe778df0e7752d2cfcbd924afdbbd89c1a755 # v6.6.1
>>>>>>> osgeo-main
=======
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
>>>>>>> osgeo-main
=======
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
>>>>>>> osgeo-main
=======
=======
>>>>>>> a287c397f5 (CI(deps): Update docker/build-push-action action to v6.3.0 (#3976))
=======
>>>>>>> 3d802a7bcb (CI(deps): Update docker/build-push-action action to v6.3.0 (#3976))
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
=======
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5.4.0
>>>>>>> 009a5b685d (CI(deps): Update docker/build-push-action action to v5.4.0 (#3787))
<<<<<<< HEAD
<<<<<<< HEAD
>>>>>>> 4e6ea460f2 (CI(deps): Update docker/build-push-action action to v5.4.0 (#3787))
=======
=======
uses: docker/build-push-action@1a162644f9a7e87d8f4b053101d1d9a712edc18c # v6.3.0
>>>>>>> db4f23459c (CI(deps): Update docker/build-push-action action to v6.3.0 (#3976))
>>>>>>> a287c397f5 (CI(deps): Update docker/build-push-action action to v6.3.0 (#3976))
=======
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
=======
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5.4.0
>>>>>>> 009a5b685d (CI(deps): Update docker/build-push-action action to v5.4.0 (#3787))
>>>>>>> d9ac1233fa (CI(deps): Update docker/build-push-action action to v5.4.0 (#3787))
=======
=======
uses: docker/build-push-action@1a162644f9a7e87d8f4b053101d1d9a712edc18c # v6.3.0
>>>>>>> db4f23459c (CI(deps): Update docker/build-push-action action to v6.3.0 (#3976))
>>>>>>> 3d802a7bcb (CI(deps): Update docker/build-push-action action to v6.3.0 (#3976))
=======
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
>>>>>>> 7e29f98e86c644696e35f504c8ae4d287e1745d3
with:
push: true
pull: true
context: .
tags: ${{ steps.meta.outputs.tags }}
file: docker/${{ matrix.os }}/Dockerfile
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}