Skip to content

Commit

Permalink
workflows: Build and push to quay
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters committed Nov 9, 2023
1 parent 64c6e7c commit 72b1921
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 19 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build-push-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: publish-image

on:

push:
branches:
- main

workflow_dispatch:

jobs:
build-and-push-image:
runs-on: ubuntu-latest

env:
dir: eln-dev

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
id: build
uses: redhat-actions/buildah-build@b4dc19b4ba891854660ab1f88a097d45aa158f76 # v2.12
with:
image: quay.io/centos-boot/fedora-tier-1-dev
tags: eln
containerfiles: ./${{ env.dir }}/Containerfile
archs: amd64
context: ${{ env.dir }}

- name: Push To quay.io
#run: buildah manifest push --all ${{ steps.build.outputs.image-with-tag }} docker://${{ steps.build.outputs.image-with-tag }}
run: buildah push ${{ steps.build.outputs.image-with-tag }} docker://${{ steps.build.outputs.image-with-tag }}
18 changes: 0 additions & 18 deletions .github/workflows/docker-image.yml

This file was deleted.

2 changes: 1 addition & 1 deletion eln-dev/Containerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/centos-boot/fedora-boot:eln
FROM quay.io/centos-boot/fedora-tier-1:eln
# FROM registry.gitlab.com/centos/cloud/sagano/fedora-boot-tier-1:eln
COPY *.repo /etc/yum.repos.d/
RUN dnf --disablerepo='*' --enablerepo=copr-coreos-continuous --enablerepo=copr-rhcontainerbot-bootc -y distro-sync && \
Expand Down

0 comments on commit 72b1921

Please sign in to comment.