Skip to content

building containers (bootc) #14

building containers (bootc)

building containers (bootc) #14

name: build containers (bootc)
run-name: building containers (bootc)
on:
workflow_dispatch:
jobs:
build:
name: build-containers-bootc
permissions:
contents: read
packages: write
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Run podman build - rebase-bootc
run: |
podman build -t ghcr.io/gbraad-devenv/fedora/rebase-bootc:41 \
--build-arg=BASE_IMAGE="ghcr.io/gbraad-dotfiles/fedora-bootc" \
--build-arg=BASE_VERSION=41 \
-f containers/Containerfile-rebase .
- name: Run podman build - dotfiles-bootc
run: |
podman build -t ghcr.io/gbraad-devenv/fedora/dotfiles-bootc:41 \
--build-arg=BASE_IMAGE="ghcr.io/gbraad-devenv/fedora/rebase-bootc" \
--build-arg=BASE_VERSION=41 \
--build-arg=USER_PASSWD="password" \
-f containers/Containerfile-dotfiles .
- name: Run podman build - systemd-bootc
run: |
podman build -t ghcr.io/gbraad-devenv/fedora/systemd-bootc:41 \
--build-arg=BASE_IMAGE="ghcr.io/gbraad-devenv/fedora/dotfiles-bootc" \
--build-arg=BASE_VERSION=41 \
-f containers/Containerfile-systemd .
- name: Login to ghcr.io
run: |
podman login ghcr.io -u ${{ github.actor }} \
-p ${{ secrets.GITHUB_TOKEN }}
- name: Push image to ghcr.io - rebase-bootc
run: |
podman push ghcr.io/gbraad-devenv/fedora/rebase-bootc:41
- name: Push image to ghcr.io - dotfiles-bootc
run: |
podman push ghcr.io/gbraad-devenv/fedora/dotfiles-bootc:41
- name: Push image to ghcr.io - systemd-bootc
run: |
podman push ghcr.io/gbraad-devenv/fedora/systemd-bootc:41