forked from curl/curl-container
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.31 KB
/
build_master_multi.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
name: build_master_multi_images
on:
# schedule:
# - cron: '30 2 * * * '
push:
branches:
- main
workflow_dispatch:
jobs:
build_multi_master:
name: ${{ matrix.build.name }}
runs-on: 'ubuntu-latest'
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
install_latest: [ true ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: "main"
- name: "login docker hub"
run: |
podman login -u ${{secrets.DOCKER_HUB_USER}} -p ${{secrets.DOCKER_HUB_TOKEN}} docker.io
docker login -u ${{secrets.DOCKER_HUB_USER}} -p ${{secrets.DOCKER_HUB_TOKEN}}
- name: 'install dev deps'
run: |
sudo apt-get update
sudo apt-get -y install buildah less git make podman qemu qemu-user-static clamav clamav-freshclam
- name: 'build multi image'
run: buildah unshare make branch_or_ref=master release_tag=latest multibuild
- name: 'push release to docker hub'
run: |
buildah manifest push --format v2s2 --all localhost/curl-multi:latest "docker://docker.io/flomesh/curl:latest"
buildah manifest push --format v2s2 --all localhost/curl-base-multi:latest "docker://docker.io/flomesh/curl-base:latest"