@@ -1,17 +0,0 @@
|
|||||||
# .gitea/workflows/publish.yml
|
|
||||||
name: Publish Action Image
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Build and push action image
|
|
||||||
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
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
# Builds and pushes the kforge Docker action image on every push to main.
|
# Builds and pushes the kforge Docker action image on every push to main.
|
||||||
# Other repos reference this image via:
|
# Other repos reference this image via:
|
||||||
# action_ref: registry.natelubitz.com/infra/kforge:latest
|
# action_ref: registry.container-registry.svc.cluster.local:5000/infra/kforge:latest
|
||||||
# in their kforge.yml, which generates:
|
# in their kforge.yml, which generates:
|
||||||
# uses: docker://registry.natelubitz.com/infra/kforge:latest
|
# uses: docker://registry.container-registry.svc.cluster.local:5000/infra/kforge:latest
|
||||||
|
|
||||||
name: Publish Action Image
|
name: Publish Action Image
|
||||||
|
|
||||||
@@ -18,17 +18,9 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Build and push kforge action image
|
- name: Build and push kforge action image
|
||||||
uses: docker/build-push-action@v5
|
env:
|
||||||
with:
|
DOCKER_BUILDKIT: "0"
|
||||||
context: .
|
run: |
|
||||||
platforms: linux/amd64
|
docker build -t registry.container-registry.svc.cluster.local:5000/infra/kforge:latest .
|
||||||
push: true
|
docker push registry.container-registry.svc.cluster.local:5000/infra/kforge:latest
|
||||||
tags: |
|
|
||||||
registry.container-registry.svc.cluster.local:5000/infra/kforge:latest
|
|
||||||
registry.container-registry.svc.cluster.local:5000/infra/kforge:${{ gitea.sha }}
|
|
||||||
provenance: false
|
|
||||||
sbom: false
|
|
||||||
|
|||||||
+2
-2
@@ -3,8 +3,8 @@ meta:
|
|||||||
tenant: nate-lubitz
|
tenant: nate-lubitz
|
||||||
|
|
||||||
registry:
|
registry:
|
||||||
url: registry.natelubitz.com
|
url: registry.container-registry.svc.cluster.local:5000
|
||||||
pull_secret: regcred
|
insecure: true
|
||||||
|
|
||||||
dns:
|
dns:
|
||||||
target: ${KFORGE_NODE_IP}
|
target: ${KFORGE_NODE_IP}
|
||||||
|
|||||||
Reference in New Issue
Block a user