forked from CentOS/centos-bootc
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 995 Bytes
/
publish-image.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
name: publish-image
on:
push:
branches:
- main
workflow_dispatch:
env:
REGISTRY: quay.io
QUAY_ORG: centos-boot
jobs:
build-and-push-image:
runs-on: ubuntu-latest
container:
image: quay.io/centos-boot/builder:1.0.0
options: --privileged
strategy:
matrix:
os: [fedora]
tier: [tier-1]
include:
- os: fedora
version: eln
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Build and Push
run: |
echo "${{ secrets.QUAY_PASSWORD }}" | skopeo login -u "${{ secrets.QUAY_USER }}" \
--password-stdin ${{ env.REGISTRY }}
rpm-ostree compose image --initialize-mode if-not-exists \
--format=registry ${{ matrix.os }}-${{ matrix.tier }}-${{ matrix.version }}.yaml \
${{ env.REGISTRY }}/${{ env.QUAY_ORG }}/${{ matrix.os }}-${{ matrix.tier}}:${{ matrix.version }}