35 lines
998 B
YAML
35 lines
998 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: Login to registry
|
|
uses: docker/login-action@v2
|
|
with:
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
registry: registry.natelubitz.com
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
- name: Build and push kforge action image
|
|
env:
|
|
DOCKER_BUILDKIT: "0"
|
|
run: |
|
|
docker build -t registry.natelubitz.com/infra/kforge:latest .
|
|
docker push registry.natelubitz.com/infra/kforge:latest
|