-
Notifications
You must be signed in to change notification settings - Fork 4
64 lines (60 loc) · 2.01 KB
/
publish-podman.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
62
63
64
name: Build podman for ubuntu
concurrency: aws-worker
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '.github/workflows/publish-podman.yml'
- 'containers/podman-ubuntu/**/*'
env:
GO_LANG_VERSION: '1.20.1'
CONMON_VERSION: '2.1.7'
CNI_PLUGINS_VERSION: '1.1.1'
CRUN_VERSION: '1.8.5'
PODMAN_VERSION: '4.5.1'
NETAVARK_VERSION: '1.3.0'
AARDVARK_DNS_VERSION: '1.3.0'
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_X86_IMAGE_ID: ${{ secrets.AWS_X86_IMAGE_ID }}
AWS_ARM64_IMAGE_ID: ${{ secrets.AWS_ARM64_IMAGE_ID }}
AWS_DEFAULT_REGION: us-east-1
jobs:
build:
name: Build Agent
strategy:
matrix:
os: [buildjet-8vcpu-ubuntu-2204, buildjet-8vcpu-ubuntu-2204-arm]
include:
- os: buildjet-8vcpu-ubuntu-2204
arch: x86_64
- os: buildjet-8vcpu-ubuntu-2204-arm
arch: aarch64
runs-on: ${{ matrix.os }}
permissions:
packages: write
contents: read
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Prepare builder
working-directory: ./containers/podman-ubuntu
run: |
docker build -t podman-builder --build-arg "GO_LANG_VERSION=${GO_LANG_VERSION}" .
-
name: Build
working-directory: ./containers/podman-ubuntu
run: |
mkdir -p ./packages/crun
wget -O "$(pwd)/packages/crun/crun_${CRUN_VERSION}_x86_64" https://github.com/containers/crun/releases/download/${CRUN_VERSION}/crun-${CRUN_VERSION}-linux-amd64
wget -O "$(pwd)/packages/crun/crun_${CRUN_VERSION}_aarch64" https://github.com/containers/crun/releases/download/${CRUN_VERSION}/crun-${CRUN_VERSION}-linux-arm64
docker run -e CONMON_VERSION -e ARCH -e PKG_ROOT -e NETAVARK_VERSION -e AARDVARK_DNS_VERSION -e PODMAN_VERSION -v `pwd`:/app podman-builder
-
name: Archive packages
uses: actions/upload-artifact@v3
with:
name: packages
path: containers/podman-ubuntu/packages