27 lines
813 B
YAML
27 lines
813 B
YAML
# Builds and pushes the kforge Docker action image on every push to main.
|
|
# Other repos reference this image via:
|
|
# action_ref: registry.container-registry.svc.cluster.local:5000/infra/kforge:latest
|
|
# in their kforge.yml, which generates:
|
|
# uses: docker://registry.container-registry.svc.cluster.local:5000/infra/kforge:latest
|
|
|
|
name: Publish Action Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build and push kforge action image
|
|
env:
|
|
DOCKER_BUILDKIT: "0"
|
|
run: |
|
|
docker build -t registry.container-registry.svc.cluster.local:5000/infra/kforge:latest .
|
|
docker push registry.container-registry.svc.cluster.local:5000/infra/kforge:latest
|