Skip to content

Merge pull request #130 from GaloisInc/update-ci #76

Merge pull request #130 from GaloisInc/update-ci

Merge pull request #130 from GaloisInc/update-ci #76

Workflow file for this run

name: Docker Image CI
on:
push:
branches:
- 'main'
env:
OPENSUT_BASE_IMAGE_ID: ghcr.io/galoisinc/verse-opensut/opensut-base:latest
CERBERUS_HARDENED_IMAGE_ID: ghcr.io/galoisinc/verse-opensut/cn-hardened:1.3
jobs:
opensut-base:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- 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}}