forked from confidential-containers/cloud-api-adaptor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Qi Feng Huo <[email protected]>
- Loading branch information
Qi Feng Huo
committed
Feb 7, 2024
1 parent
372e4e7
commit 8654ca7
Showing
1 changed file
with
57 additions
and
0 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,57 @@ | ||
name: mkosi build podvm builder, binaries and image | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
build-podvm-image-mkosi: | ||
name: Build podvm image via mkosi | ||
runs-on: ${{ matrix.runner }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
runner: | ||
- ubuntu-latest | ||
- self-hosted | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Take a pre-action for self-hosted runner | ||
run: | | ||
if [ -f ${HOME}/script/pre_action.sh ]; then | ||
${HOME}/script/pre_action.sh cc-caa | ||
fi | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
#- name: Log in to GitHub Container Registry | ||
# uses: docker/login-action@v2 | ||
# with: | ||
# registry: ghcr.io | ||
# username: ${{ github.actor }} | ||
# password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build builder | ||
run: make fedora-binaries-builder | ||
working-directory: podvm-mkosi | ||
|
||
- name: Build binaries | ||
run: make binaries | ||
working-directory: podvm-mkosi | ||
|
||
# TODO - build image via mkosi when s390x is available | ||
# TODO - upload the image | ||
|
||
- name: Take a post-action | ||
if: always() | ||
run: | | ||
if [ -f ${HOME}/script/post_action.sh ]; then | ||
${HOME}/script/post_action.sh cc-caa | ||
fi | ||