blob: 4a9912bec63db577080ce0a0b0f1def0a2ae8f5a (
plain)
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
|
on:
schedule:
- cron: "5 * * *"
push:
branches:
- "main"
jobs:
test:
runs-on: docker
steps:
- run: echo All good!
container-build:
name: Build image
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: install buildah
run: |
. /etc/lsb-release && \
sudo apt-get update && \
sudo apt-get install -y gnupg2 && \
echo "deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${DISTRIB_RELEASE}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list && \
curl -fsL "https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_${DISTRIB_RELEASE}/Release.key" | sudo apt-key add - && \
sudo apt-get update && \
sudo apt-get install -y buildah fuse-overlayfs
sudo sed -i 's/^\[machine\]$/#\[machine\]/' /usr/share/containers/containers.conf
- name: Buildah Action
uses: redhat-actions/buildah-build@v2
with:
image: test-image
containerfiles: |
./Containerfile
|