Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Release project

on:
release:
types: [published]
push:
branches:
- main

permissions:
contents: read

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@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- 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 edgeinstaller .

- name: Push main tag
run: |
podman manifest push edgeinstaller docker://quay.io/loganmc10/openshift-edge-installer:${{ github.ref_name }}

- name: Push latest tag
if: ${{ github.event_name == 'release' }}
run: |
podman manifest push netplay docker://quay.io/loganmc10/openshift-edge-installer:latest