forked from lf-edge/eve
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (61 loc) · 2.1 KB
/
build-alpine-base.yml
File metadata and controls
67 lines (61 loc) · 2.1 KB
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
# Copyright (c) 2026, Zededa, Inc.
# SPDX-License-Identifier: Apache-2.0
---
name: Alpine base image - build and publish on demand
on: # yamllint disable-line rule:truthy
workflow_dispatch:
permissions: {}
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
permissions:
contents: read
strategy:
fail-fast: false
matrix:
include:
- arch: amd64
runner: zededa-ubuntu-2204
- arch: arm64
runner: zededa-ubuntu-2204-arm64
- arch: riscv64
runner: zededa-ubuntu-2204
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- name: Set up QEMU for cross-arch builds
if: matrix.arch == 'riscv64'
run: |
APT_INSTALL="sudo apt install -y binfmt-support qemu-user-static"
$APT_INSTALL || { sudo apt update && $APT_INSTALL ; }
- name: Login to Docker Hub
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
with:
username: ${{ secrets.MIKEM_DOCKERHUB_ACCOUNT }}
password: ${{ secrets.MIKEM_DOCKERHUB_TOKEN }}
- name: Build and push alpine-base (${{ matrix.arch }})
run: |
make V=1 ZARCH=${{ matrix.arch }} LINUXKIT_PKG_TARGET=push LINUXKIT_PKG_ORG=mikemzed pkg/alpine-base
manifest:
needs: build
runs-on: zededa-ubuntu-2204
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- name: Login to Docker Hub
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
with:
username: ${{ secrets.MIKEM_DOCKERHUB_ACCOUNT }}
password: ${{ secrets.MIKEM_DOCKERHUB_TOKEN }}
- name: Create multi-arch manifest
run: |
make V=1 LINUXKIT_PKG_TARGET=manifest LINUXKIT_PKG_ORG=mikemzed pkg/alpine-base