-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.12 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
33
34
35
36
37
38
39
40
name: Docker Image CI
on:
push:
jobs:
cerberus:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Log in to Docker Hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Build the Docker image
run: |
cd src/cerberus
make -f Makefile_docker release
docker tag cerberus:release galoisinc/cerberus:release
- name: Push the Docker image
run: docker push galoisinc/cerberus:release
- name: Log out
run: docker logout
opensut-base:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Log in to Docker Hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Build the Docker image
run: |
docker build . --file Dockerfile --tag galoisinc/opensut-base:latest
- name: Push the Docker image
run: docker push galoisinc/opensut-base:latest
- name: Log out
run: docker logout