forked from CentOS/centos-bootc-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 1.08 KB
/
build-push-images.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
name: publish-image
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-push-image:
runs-on: ubuntu-latest
env:
dir: eln-dev
image: quay.io/centos-boot/fedora-tier-1-dev:eln
steps:
- name: Install qemu dependency
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Login to quay.io
run: buildah login --username ${{ secrets.QUAY_USER }} --password ${{ secrets.QUAY_PASSWORD }} quay.io
- name: Build
uses: redhat-actions/buildah-build@b4dc19b4ba891854660ab1f88a097d45aa158f76 # v2.12
with:
image: ${{ env.image }}
tags: latest
containerfiles: ./${{ env.dir }}/Containerfile
archs: amd64
context: ${{ env.dir}}
- name: Push To quay.io
#run: buildah manifest push --all ${{ env.image }} docker://${{ env.image }}
run: buildah push ${{ env.image }} docker://${{ env.image }}