Skip to content

Commit

Permalink
Merge pull request #56 from slagle/bootc-workflow
Browse files Browse the repository at this point in the history
Update edpm-bootc workflow
  • Loading branch information
slagle authored Jan 30, 2025
2 parents 2688a66 + 142780c commit dcc9e16
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/edpm-bootc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ on:
- '*'
paths:
- bootc/**
- .github/workflows/edpm-bootc.yaml
workflow_dispatch:

env:
imageregistry: 'quay.io'
imagenamespace: ${{ secrets.IMAGENAMESPACE || secrets.QUAY_USERNAME }}
latesttag: latest

defaults:
run:
shell: bash
working-directory: ./bootc

jobs:

check-secrets:
Expand Down Expand Up @@ -40,16 +46,14 @@ jobs:

- name: Set latest tag for non main branch
if: "${{ steps.branch-name.outputs.current_branch != 'main' }}"
shell: bash
run: |
echo "latesttag=${{ steps.branch-name.outputs.current_branch }}-latest" >> $GITHUB_ENV
- name: Build edpm-bootc
id: build-edpm-bootc
shell: bash
run: |
cd bootc
export EDPM_BOOTC_TAG=${latesttag}
podman run --rm -it -v .:/bootc:rw,z quay.io/centos/centos:stream9 /bin/bash -c "cd bootc; dnf -y install make; make output/yum.repos.d"
make build
- name: Push edpm-bootc To ${{ env.imageregistry }}
Expand All @@ -63,7 +67,6 @@ jobs:
password: ${{ secrets.QUAY_PASSWORD }}

- name: Print image url and digest
shell: bash
run: |
echo "Image pushed to ${{ steps.push-edpm-bootc.outputs.registry-paths }}"
echo "Image digest: ${{ steps.push-edpm-bootc.outputs.digest }}"
1 change: 1 addition & 0 deletions bootc/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
SHELL := /bin/bash
EDPM_BOOTC_REPO ?= quay.io/openstack-k8s-operators/edpm-bootc
EDPM_BOOTC_TAG ?= latest
EDPM_CONTAINERFILE ?= Containerfile.centos9
Expand Down

0 comments on commit dcc9e16

Please sign in to comment.