40 lines
818 B
YAML
40 lines
818 B
YAML
name: Build and push cimaster image
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
paths:
|
|
- "cimaster/**"
|
|
# Update image weekly
|
|
schedule:
|
|
- cron: "0 0 * * 0"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build cimaster docker image
|
|
uses: https://code.thetadev.de/ThetaDev/action-kaniko@v1
|
|
with:
|
|
image: thetadev256/cimaster
|
|
username: thetadev256
|
|
password: ${{ secrets.DOCKER_TOKEN }}
|
|
tag: bookworm
|
|
tag_with_latest: true
|
|
platforms: "linux/amd64,linux/arm64"
|
|
build_file: "cimaster/Dockerfile"
|
|
|
|
test:
|
|
runs-on: cimaster-latest
|
|
needs: build
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Test cimaster
|
|
run: bash cimaster/test.sh
|