This commit is contained in:
@@ -6,28 +6,26 @@ on:
|
|||||||
- "pbsclient/**"
|
- "pbsclient/**"
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 16 * * Sun"
|
- cron: "0 16 * * Sun"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build-docker-image:
|
build-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: oci-image-builder
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Log in to git.limbosolutions.com docker registry
|
- name: Build and push image with Kaniko
|
||||||
uses: docker/login-action@v3
|
uses: aevea/action-kaniko@v1
|
||||||
with:
|
with:
|
||||||
registry: git.limbosolutions.com
|
registry: git.limbosolutions.com
|
||||||
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
- name: Build and push Docker images
|
# Path to the Dockerfile and build context
|
||||||
id: push
|
dockerfile: pbsclient/docker/Dockerfile
|
||||||
uses: docker/build-push-action@v6
|
path: pbsclient
|
||||||
with:
|
|
||||||
context: ${{gitea.workspace}}/pbsclient
|
# Final image destination
|
||||||
file: ${{gitea.workspace}}/pbsclient/docker/Dockerfile
|
destination: git.limbosolutions.com/kb/pbsclient:latest
|
||||||
push: true
|
|
||||||
tags: git.limbosolutions.com/kb/pbsclient
|
|
||||||
|
|||||||
Reference in New Issue
Block a user