Skip to content

Merge pull request #85 from GaloisInc/76-emb3d-threat-model #42

Merge pull request #85 from GaloisInc/76-emb3d-threat-model

Merge pull request #85 from GaloisInc/76-emb3d-threat-model #42

Workflow file for this run

name: Docker Image CI
on:
push:
branches:
- 'main'
env:
CERBERUS_IMAGE_NAME: cerberus:release
OPENSUT_BASE_IMAGE_NAME: opensut-base:latest
REGISTRY_BASE_NAME: ghcr.io/galoisinc/verse-opensut
CERBERUS_IMAGE_ID: $REGISTRY_BASE_NAME/$CERBERUS_IMAGE_NAME
OPENSUT_BASE_IMAGE_ID: $REGISTRY_BASE_NAME/$OPENSUT_BASE_IMAGE_NAME
jobs:
cerberus:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: false
- name: Checkout Cerberus submodule
run: git submodule update --init src/cerberus
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.VERSE_OPENSUT_ACCESS_TOKEN }}
- name: Build the Docker image
run: |
echo "Building ${{env.CERBERUS_IMAGE_ID}}"
cd src/cerberus
make -f Makefile_docker release
docker tag cerberus:release ${{env.CERBERUS_IMAGE_ID}}
- name: Push the Docker image
run: docker push ${{env.CERBERUS_IMAGE_ID}}
opensut-base:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.VERSE_VHOST_DEVICE_ACCESS_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.VERSE_OPENSUT_ACCESS_TOKEN }}
- name: Build the Docker image
run: |
echo "Building ${{env.OPENSUT_BASE_IMAGE_ID}}"
docker build . --file Dockerfile --tag ${{env.OPENSUT_BASE_IMAGE_ID}}
- name: Push the Docker image
run: docker push ${{env.OPENSUT_BASE_IMAGE_ID}}