-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (30 loc) · 1.01 KB
/
build-publish.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
name: 'Build and Publish'
concurrency:
group: ${{ github.workflow }}-${{ ( github.ref == 'refs/heads/main' ) && format('ci-main-{0}', github.sha) || format('ci-main-{0}', github.ref) }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches:
- 'main'
schedule:
- cron: '19 21 * * TUE'
jobs:
build:
name: 'Build and push docker images'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
fetch-depth: 2
- name: 'Build tailormap-data images'
run: docker compose -f ./docker-compose.yml build --pull --parallel --compress --no-cache postgis oracle sqlserver
- name: 'Login to b3p.nl'
uses: docker/login-action@v3
with:
registry: docker.b3p.nl
username: ${{ secrets.B3P_DEPLOY_ACTOR }}
password: ${{ secrets.B3P_DEPLOY_TOKEN }}
- name: 'Push tailormap-data database images'
run: docker compose -f ./docker-compose.yml push postgis oracle sqlserver