-
-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (55 loc) · 1.95 KB
/
podman-build.yml
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
name: Build standalone container image (experimental)
on:
schedule:
- cron: "15 14 * * *"
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
name: Build standalone container image
runs-on: ubuntu-latest
container:
image: ghcr.io/terrapkg/builder:f40
options: --privileged --device=/dev/fuse
steps:
- name: Install dependencies
run: |
dnf5 install -y buildah podman skopeo fuse-overlayfs fuse3
- name: Checkout repository
uses: actions/checkout@v4
# - name: Login to ghcr.io
# uses: redhat-actions/podman-login@v1
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
- name: Build container image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
containerfiles: |
base-standalone/Containerfile
image: ghcr.io/ultramarine-linux/base-standalone-bootc
tags: 41 latest
context: base-standalone
layers: true
extra-args: |
--security-opt=label=disable
--cap-add=all
--device=/dev/fuse
- name: Push To ghcr.io
uses: redhat-actions/push-to-registry@v2
with:
image: base-standalone-bootc
tags: ${{ steps.build-image.outputs.tags }}
registry: ghcr.io/ultramarine-linux
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}