forked from confidential-containers/cloud-api-adaptor
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (57 loc) · 2.01 KB
/
podvm_mkosi_binaries.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Build mkosi PodVM binaries
on:
workflow_dispatch:
inputs:
binaries-image:
description: "Prebuild fedora binaries image, as produced by this workflow under ghcr.io/confidential-containers/cloud-api-adaptor/podvm/binaries-fedora"
required: false
jobs:
build-binaries:
name: Build binaries
if : ${{ github.event.inputs.binaries-image == '' }}
runs-on: 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
# uses: docker/build-push-action@v5
# with:
# tags: ghcr.io/${{ github.repository }}/podvm/builder-fedora:${{ github.sha }}
# file: podvm/Dockerfile.podvm_builder.fedora
# push: false
#- name: Build binaries
# uses: docker/build-push-action@v5
# with:
# tags: ghcr.io/${{ github.repository }}/podvm/binaries-fedora:${{ github.sha }}
# file: podvm/Dockerfile.podvm_binaries.fedora
# push: false
# build-args:
# "BUILDER_IMG=ghcr.io/${{ github.repository }}/podvm/builder-fedora:${{ github.sha }}"
- name: Build builder
run: make fedora-binaries-builder
working-directory: podvm-mkosi
- name: Build binaries
run: make binaries
working-directory: podvm-mkosi
- name: Take a post-action
if: always()
run: |
if [ -f ${HOME}/script/post_action.sh ]; then
${HOME}/script/post_action.sh cc-caa
fi