-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor matrix; add push jobs to run on main only
Signed-off-by: Spencer Wilson <[email protected]>
- Loading branch information
Showing
2 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Build Docker images | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches-ignore: 'main' | ||
|
||
jobs: | ||
ubuntu: | ||
strategy: | ||
matrix: | ||
arch: | ||
- arm64 | ||
- x86_64 | ||
distro: | ||
- focal | ||
- jammy | ||
- latest | ||
include: | ||
- arch: arm64 | ||
runner: oqs-arm64 | ||
- arch: x86_64 | ||
runner: ubuntu-latest | ||
runs-on: ${{ matrix.runner }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Build image | ||
uses: docker/build-push-action@v6 | ||
with: | ||
push: false | ||
build-args: ARCH=${{ matrix.arch }} | ||
tags: openquantumsafe/ci-ubuntu-${{ matrix.distro }}:latest-${{ matrix.arch }} | ||
context: ubuntu-${{ matrix.distro }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters