Skip to content

Building container - Fedora (bootc) #149

Building container - Fedora (bootc)

Building container - Fedora (bootc) #149

name: build container - fedora-bootc
run-name: Building container - Fedora (bootc)
on:
workflow_dispatch:
jobs:
build:
name: build-container-fedora-bootc
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 - fedora-bootc
run: |
podman build -t ghcr.io/gbraad-dotfiles/fedora-bootc:latest \
--build-arg=BASE_IMAGE="quay.io/fedora/fedora-bootc" \
--build-arg=BASE_VERSION=41 \
--build-arg=HOMEBASE="/var/home" \
--build-arg=USER_PASSWD="password" \
--build-arg=ROOTHOME="/var/roothome" \
-f .devcontainer/fedora/Containerfile .
- name: Set release tag
id: get-tag
run: |
echo "TAG=$(date +'%y%m%d')" >> $GITHUB_OUTPUT
- name: Tag container
run: |
podman tag ghcr.io/gbraad-dotfiles/fedora-bootc:latest \
ghcr.io/gbraad-dotfiles/fedora-bootc:41
podman tag ghcr.io/gbraad-dotfiles/fedora-bootc:latest \
ghcr.io/gbraad-dotfiles/fedora-bootc:${{steps.get-tag.outputs.TAG}}
- name: Login to registry
run: |
podman login ghcr.io -u ${{ github.actor }} \
-p ${{ secrets.GITHUB_TOKEN }}
- name: Push container to registry
run: |
podman push ghcr.io/gbraad-dotfiles/fedora-bootc:latest
podman push ghcr.io/gbraad-dotfiles/fedora-bootc:41
podman push ghcr.io/gbraad-dotfiles/fedora-bootc:${{steps.get-tag.outputs.TAG}}