-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (36 loc) · 1.15 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
name: Release project
on:
release:
types: [published]
push:
branches:
- main
env:
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
IMAGE_REGISTRY: quay.io
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
jobs:
release-linux:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Log in to Quay.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ${{ env.IMAGE_REGISTRY }}
- name: Build manifest
run: |
podman buildx build --platform linux/amd64,linux/arm64 --manifest netplay .
- name: Push main tag
run: |
podman manifest push netplay docker://quay.io/simple64/simple64-netplay-server:${{ github.ref_name }}
- name: Push latest tag
if: ${{ github.event_name == 'release' }}
run: |
podman manifest push netplay docker://quay.io/simple64/simple64-netplay-server:latest