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