forked from mgoltzsche/podman-static
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (52 loc) · 1.61 KB
/
release.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: Release
on:
push:
# Publish `main` as Docker `latest` image.
branches:
- main
# Publish `v1.2.3` tags as releases.
tags:
- v*
env:
PODMAN_IMAGE: podman
PODMAN_MINIMAL_IMAGE: podman-minimal
PODMAN_REMOTE_IMAGE: podman-remote
jobs:
push:
runs-on: ubuntu-latest
# if: github.event_name == 'push'
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up qemu
uses: docker/setup-qemu-action@v1
with:
platforms: all
- name: Build & test
run: make images
#run: make images test
- name: Build signed archives
run: make clean multiarch-tar TAR_TARGET=signed-tar
env:
GPG_SIGN_KEY: ${{ secrets.GPG_SIGN_KEY }}
GPG_SIGN_KEY_PASSPHRASE: ${{ secrets.GPG_SIGN_KEY_PASSPHRASE }}
- name: Upload a Build Artifact archive amd64
uses: actions/[email protected]
with:
path: ./build/asset/podman-linux-amd64.tar.gz
name: podman-linux-amd64.tar.gz
- name: Upload a Build Artifact signature amd64
uses: actions/[email protected]
with:
path: ./build/asset/podman-linux-amd64.tar.gz.asc
name: podman-linux-amd64.tar.gz.asc
- name: Upload a Build Artifact archive aarch64
uses: actions/[email protected]
with:
path: ./build/asset/podman-linux-arm64.tar.gz
name: podman-linux-arm64.tar.gz
- name: Upload a Build Artifact signature aarch64
uses: actions/[email protected]
with:
path: ./build/asset/podman-linux-arm64.tar.gz.asc
name: podman-linux-arm64.tar.gz.asc