Skip to content
43 changes: 42 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
uses: ./.github/actions/setup
with:
os: ${{ matrix.os }}

- name: Build release bundle
run: |
cargo run -p make-kani-release -- ${{ needs.Release.outputs.version }}
Expand All @@ -86,3 +86,44 @@ jobs:
asset_path: kani-${{ needs.Release.outputs.version }}-${{ matrix.target }}.tar.gz
asset_name: kani-${{ needs.Release.outputs.version }}-${{ matrix.target }}.tar.gz
asset_content_type: application/gzip

Package-Docker:
name: 'Package Docker'
needs: Release
runs-on: ubuntu-20.04
permissions:
contents: write
strategy:
os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Kani Dependencies
uses: ./.github/actions/setup
with:
os: ubuntu-20.04

- name: 'Build release bundle'
run: |
cargo run -p make-kani-release -- ${{ needs.Release.outputs.version }}

- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: model-checking
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v3
with:
registry: ghcr.io
context: .
file: scripts/ci/Dockerfile.bundle-test-ubuntu-20-04
Comment thread
YoshikiTakashima marked this conversation as resolved.
Outdated
push: true
github-token: ${{ secrets.GITHUB_TOKEN }}
tags: |
ghcr.io/model-checking/kani-${{ matrix.target }}:${{ needs.Release.outputs.version }}
ghcr.io/model-checking/kani-${{ matrix.target }}:latest
2 changes: 2 additions & 0 deletions scripts/ci/Dockerfile.bundle-test-ubuntu-20-04
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ COPY ./kani-latest-x86_64-unknown-linux-gnu.tar.gz ./
COPY ./target/package/kani-verifier-*[^e] ./kani-verifier
RUN cargo install --path ./kani-verifier
RUN cargo-kani setup --use-local-bundle ./kani-latest-x86_64-unknown-linux-gnu.tar.gz

LABEL org.opencontainers.image.source https://github.com/model-checking/kani