-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (26 loc) · 1.11 KB
/
docker-image.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
name: Docker Image CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
# TODO: (aver) add private image push!
steps:
- uses: actions/checkout@v3
- name: Login to ghcr.io
run: docker login --username arminveres --password ${{ secrets.GH_PAT }} ghcr.io
- name: Build and push the Agent Docker image
run: |
docker build . --file docker/agent.dockerfile --tag ghcr.io/arminveres/bachelor-thesis-23/node-agent:latest
docker push ghcr.io/arminveres/bachelor-thesis-23/node-agent:latest
- name: Build and Push the Auditor Docker image
run: |
docker build . --file docker/auditor.dockerfile --tag ghcr.io/arminveres/bachelor-thesis-23/auditor:latest
docker push ghcr.io/arminveres/bachelor-thesis-23/auditor:latest
- name: Build and Push the Updater Docker image
run: |
docker build . --file docker/updater.dockerfile --tag ghcr.io/arminveres/bachelor-thesis-23/updater:latest
docker push ghcr.io/arminveres/bachelor-thesis-23/updater:latest