Skip to content

Commit 0434344

Browse files
authored
Merge pull request #63 from pgRouting/workflows/add-ci-workflow
Add GitHub Actions workflow for Docker image CI
2 parents 521a20b + 38b2051 commit 0434344

File tree

295 files changed

+1279
-4390
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

295 files changed

+1279
-4390
lines changed

.github/workflows/main.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Docker pgRouting CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
defaults:
12+
run:
13+
shell: bash
14+
15+
jobs:
16+
make-docker-images:
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
postgres: [13, 14, 15, 16, 17]
21+
postgis: [3.5]
22+
pgrouting: [3.6, 3.7, main, develop]
23+
24+
name: Build Docker image for ${{ matrix.postgres }}-${{ matrix.postgis }}-${{ matrix.pgrouting }}
25+
runs-on: ubuntu-24.04
26+
continue-on-error: ${{ (matrix.pgrouting == 'develop') || (matrix.pgrouting == 'main') }}
27+
env:
28+
VERSION: ${{ matrix.postgres }}-${{ matrix.postgis }}-${{ matrix.pgrouting }}
29+
30+
steps:
31+
- name: Checkout source
32+
uses: actions/checkout@v4
33+
34+
- name: Build docker image for ${{ env.VERSION }}
35+
run: make build
36+
37+
- name: Test docker image for ${{ env.VERSION }}
38+
run: make test
39+
40+
- name: Login to Docker Hub
41+
uses: docker/login-action@v3
42+
if: ${{ (github.ref == 'refs/heads/master') && (github.event_name != 'pull_request') }}
43+
with:
44+
username: ${{ secrets.DOCKERHUB_USERNAME }}
45+
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
46+
47+
- name: Push docker image to Docker Hub
48+
if: ${{ (github.ref == 'refs/heads/master') && (github.event_name != 'pull_request') }}
49+
env:
50+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
51+
DOCKERHUB_ACCESS_TOKEN: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
52+
run: make push

11-3.3-3.3/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

11-3.3-3.3/docker-compose.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

11-3.3-3.3/version.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

11-3.3-3.4/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

11-3.3-3.4/docker-compose.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

11-3.3-3.4/version.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

11-3.3-develop/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

11-3.3-develop/docker-compose.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

11-3.3-develop/version.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)