Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #19 from cgwalters/ci-updates
Browse files Browse the repository at this point in the history
Ci updates
  • Loading branch information
lmilbaum authored Dec 13, 2023
2 parents 2d382b9 + 1436fe7 commit 8a04ba7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build-and-push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
branches:
- main

schedule:
- cron: "50 */4 * * *"

workflow_dispatch:

jobs:
Expand Down Expand Up @@ -38,7 +41,7 @@ jobs:

- name: Login to quay.io
run: buildah login --username ${{ secrets.QUAY_USER }} --password ${{ secrets.QUAY_PASSWORD }} quay.io
if: ${{ github.event_name == 'push' }}
if: ${{ github.event_name != 'pull_request' }}

- name: Build
id: build
Expand All @@ -51,9 +54,9 @@ jobs:
extra-args: |
--from
quay.io/centos-bootc/${{ matrix.os }}-bootc-dev:${{ matrix.tag }}
archs: amd64
archs: amd64, arm64
context: ${{ env.dir }}

- name: Push To quay.io
run: buildah push ${{ steps.build.outputs.image-with-tag }} docker://${{ steps.build.outputs.image-with-tag }}
if: ${{ github.event_name == 'push' }}
run: buildah manifest push --all ${{ steps.build.outputs.image-with-tag }} docker://${{ steps.build.outputs.image-with-tag }}
if: ${{ github.event_name != 'pull_request' }}

0 comments on commit 8a04ba7

Please sign in to comment.