another attempt
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
# Builds and pushes the kforge Docker action image on every push to main.
|
||||
# Other repos reference this image via:
|
||||
# action_ref: registry.natelubitz.com/infra/kforge:latest
|
||||
# in their kforge.yml, which generates:
|
||||
# uses: docker://registry.natelubitz.com/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:
|
||||
registry: registry.natelubitz.com
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build and push kforge action image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
tags: |
|
||||
registry.natelubitz.com/infra/kforge:latest
|
||||
registry.natelubitz.com/infra/kforge:${{ gitea.sha }}
|
||||
provenance: false
|
||||
sbom: false
|
||||
Reference in New Issue
Block a user