Skip to content

Building container - Debian #183

Building container - Debian

Building container - Debian #183

name: build container - debian
run-name: Building container - Debian
on:
workflow_dispatch:
jobs:
build:
name: build-container-debian
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 - debian
run: |
podman build -t ghcr.io/gbraad-dotfiles/debian:latest \
-f .devcontainer/debian/Containerfile .
- name: Tag and push image to ghcr.io - debian
run: |
DATE=$(date +"%y%m%d")
podman tag ghcr.io/gbraad-dotfiles/debian:latest \
ghcr.io/gbraad-dotfiles/debian:bookworm
podman tag ghcr.io/gbraad-dotfiles/debian:latest \
ghcr.io/gbraad-dotfiles/debian:${DATE}
podman login ghcr.io -u ${{ github.actor }} \
-p ${{ secrets.GITHUB_TOKEN }}
podman push ghcr.io/gbraad-dotfiles/debian:${DATE}
podman push ghcr.io/gbraad-dotfiles/debian:bookworm
podman push ghcr.io/gbraad-dotfiles/debian:latest