Skip to content

building container

building container #2

name: build container
run-name: building container
on:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-24.04
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Run podman build - base
run: |
podman build -t ghcr.io/gbraad-redhat/fedora-bootc-example/fedora:latest \
--build-arg=BASE_IMAGE="quay.io/fedora/fedora" \
-f containers/Containerfile .
- name: Push image to ghcr.io - base
run: |
podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} \
ghcr.io/gbraad-redhat/fedora-bootc-example/fedora:latest