-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (61 loc) · 2.24 KB
/
build.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
name: Build Docker Image
on:
push:
branches:
- 'master'
- 'main'
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
config:
- { tag: "prefectinspect", dockerfile: "test/prefectinspect/Dockerfile", context: "test/prefectinspect"}
- { tag: "base", dockerfile: "anonimisation/Dockerfile", context: "anonimisation"}
#- { tag: "prefectexample", dockerfile: "test/prefectexample/Dockerfile", context: "test/prefectexample"}
steps:
- name: Clone
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GHCR (GitHub Packages)
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to datatailor
uses: docker/login-action@v2
with:
registry: registry.datatailor.be
username: ${{ secrets.DATATAILOR_REGISTRY_USER }}
password: ${{ secrets.DATATAILOR_REGISTRY_PWD }}
- name: Build and push ghcr.io
uses: docker/build-push-action@v5
with:
context: ${{ matrix.config.context }}
push: true
tags: "ghcr.io/bnosac/blackbar-${{ matrix.config.tag }}:latest"
file: ${{ matrix.config.dockerfile }}
- name: Build and push Dockerhub
uses: docker/build-push-action@v5
with:
context: ${{ matrix.config.context }}
push: true
tags: "bnosac/blackbar-${{ matrix.config.tag }}:latest"
file: ${{ matrix.config.dockerfile }}
- name: Build and push registry.datatailor.be
uses: docker/build-push-action@v5
with:
context: ${{ matrix.config.context }}
push: true
tags: "registry.datatailor.be/blackbar-${{ matrix.config.tag }}:latest"
file: ${{ matrix.config.dockerfile }}