Skip to content

Commit baea931

Browse files
committed
Setup github actions but disabled dockerhub image push for now
1 parent e369507 commit baea931

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed

.github/workflows/main.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Docker PostGIS CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '15 5 * * 1'
8+
9+
defaults:
10+
run:
11+
shell: bash
12+
13+
jobs:
14+
make-docker-images:
15+
strategy:
16+
matrix:
17+
postgres: [9.5, 9.6, 10, 11, 12, 13]
18+
postgis: ['2.5', '3.0']
19+
variant: [default, alpine]
20+
exclude:
21+
- postgres: 13
22+
postgis: '2.5'
23+
include:
24+
- postgres: 12
25+
postgis: master
26+
variant: default
27+
- postgres: 13
28+
postgis: master
29+
variant: default
30+
name: Build docker image for ${{ matrix.postgres }}-${{ matrix.postgis }} variant ${{ matrix.variant }}
31+
runs-on: ubuntu-20.04
32+
continue-on-error: ${{ matrix.postgis == 'master' }}
33+
env:
34+
VERSION: ${{ matrix.postgres }}-${{ matrix.postgis }}
35+
VARIANT: ${{ matrix.variant }}
36+
37+
steps:
38+
- name: Checkout source
39+
uses: actions/checkout@v2
40+
41+
- name: Build docker image for ${{ env.VERSION }} ${{ env.VARIANT }}
42+
run: make test
43+
44+
# - name: Push docker image to dockerhub
45+
# env:
46+
# DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
47+
# DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
48+
# DOCKERHUB_ACCESS_TOKEN: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
49+
# run: echo "$DOCKERHUB_ACCESS_TOKEN" | docker login -u $DOCKERHUB_USERNAME --password-stdin && make push
50+

update.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,7 @@ for version in "${versions[@]}"; do
107107

108108
done
109109
travis="$(awk -v 'RS=\n\n' '$1 == "env:" { $0 = "env:'"$travisEnv"'" } { printf "%s%s", $0, RS }' .travis.yml)"
110-
echo "$travis" > .travis.yml
110+
111+
# *** TRAVIS IS DISABLED FOR NOW ***
112+
#echo "$travis" > .travis.yml
111113

0 commit comments

Comments
 (0)