building containers #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build containers | |
run-name: building containers | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: build-containers | |
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 | |
run: | | |
podman build -t ghcr.io/gbraad-devenv/fedora/rebase:41 \ | |
--build-arg=BASE_IMAGE="ghcr.io/gbraad-dotfiles/fedora" \ | |
--build-arg=BASE_VERSION=41 \ | |
-f containers/Containerfile-rebase . | |
- name: Run podman build - dotfiles | |
run: | | |
podman build -t ghcr.io/gbraad-devenv/fedora/dotfiles:41 \ | |
--build-arg=BASE_IMAGE="ghcr.io/gbraad-devenv/fedora/rebase" \ | |
--build-arg=BASE_VERSION=41 \ | |
-f containers/Containerfile-dotfiles . | |
- name: Run podman build - systemd | |
run: | | |
podman build -t ghcr.io/gbraad-devenv/fedora/systemd:41 \ | |
--build-arg=BASE_IMAGE="ghcr.io/gbraad-devenv/fedora/dotfiles" \ | |
--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 | |
run: | | |
podman push ghcr.io/gbraad-devenv/fedora/rebase:41 | |
- name: Push image to ghcr.io - dotfiles | |
run: | | |
podman push ghcr.io/gbraad-devenv/fedora/dotfiles:41 | |
- name: Push image to ghcr.io - systemd | |
run: | | |
podman push ghcr.io/gbraad-devenv/fedora/systemd:41 |