debian-node-firebase/.forgejo/workflows/docker-master.yaml
Guillaume B.B. Van Hemmen 50b53e3700 Add CI workflows for Docker image building and pushing
Introduce four workflows to automate Docker builds and pushes using Kaniko. These workflows cover push events to the `master` branch, pull requests, tag pushes, and other branches. They streamline image publishing to the specified registry with proper secrets configuration.
2025-05-19 19:01:03 +02:00

23 lines
944 B
YAML

on:
push:
branches:
- 'master'
jobs:
docker-master:
runs-on: docker
container:
image: git.van-hemmen.com/actions/kaniko:25.21.1
steps:
- name: Build & push with Kaniko
run: /bin/build.sh
env:
# --- mandatory --------------------------------------------------------
KANIKO_CONTEXT: git://git.van-hemmen.com/GuillaumeHemmen/debian-node-firebase.git
GIT_REF_NAME: ${{ github.ref_name }}
GIT_USERNAME: ${{ secrets.docker_username }}
GIT_PASSWORD: ${{ secrets.access_token }}
# --- optional (only needed when you plan to push) ---------------------
REGISTRY_USER: ${{ secrets.docker_username }}
REGISTRY_PASS: ${{ secrets.access_token }}
KANIKO_DESTINATION: git.van-hemmen.com/GuillaumeHemmen/debian-node-firebase:${GITHUB_SHA},git.van-hemmen.com/GuillaumeHemmen/debian-node-firebase:latest