Skip to content

Commit

Permalink
Workflow for building AE image
Browse files Browse the repository at this point in the history
Signed-off-by: Xudong Sun <[email protected]>
  • Loading branch information
marshtompsxd committed Apr 11, 2024
1 parent 40c6fd8 commit 6ad260d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ae.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Controller build
on:
workflow_dispatch:
env:
IMAGE_NAME: ${{ github.repository }}
jobs:
build-ae-image:
runs-on: ubuntu-20.04
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log into registry ghcr.io
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
- name: Build artifact evaluation image
run: |
cp docker/ae/Dockerfile .
docker build -t ghcr.io/${{ env.IMAGE_NAME }}/ae:latest .
docker tag ghcr.io/${{ env.IMAGE_NAME }}/ae:latest ghcr.io/${{ env.IMAGE_NAME }}/ae:${{ github.sha }}
- name: Push artifact evaluation image
run: |
docker push ghcr.io/${{ env.IMAGE_NAME }}/ae:latest
docker push ghcr.io/${{ env.IMAGE_NAME }}/ae:${{ github.sha }}
9 changes: 9 additions & 0 deletions docker/ae/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ghcr.io/vmware-research/verifiable-controllers/verus:latest as builder

WORKDIR /anvil

SHELL ["/bin/bash", "-c"]

COPY . .

RUN apt install -y pkg-config libssl-dev

0 comments on commit 6ad260d

Please sign in to comment.