@@ -13,20 +13,23 @@ jobs:
|
||||
runs-on: oci-image-builder
|
||||
|
||||
steps:
|
||||
- name: Start BuildKit
|
||||
run: |
|
||||
buildkitd --oci-worker-no-process-sandbox --root /tmp/buildkit &
|
||||
sleep 3
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Login to Gitea registry
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | \
|
||||
docker login git.limbosolutions.com \
|
||||
--username "${{ secrets.REGISTRY_USERNAME }}" \
|
||||
--password-stdin
|
||||
|
||||
- name: Build and push image with Kaniko
|
||||
uses: int128/kaniko-action@v1
|
||||
with:
|
||||
registry: git.limbosolutions.com
|
||||
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
||||
- name: Build and push image
|
||||
run: |
|
||||
buildctl build \
|
||||
--frontend=dockerfile.v0 \
|
||||
--local context=/pbsclient \
|
||||
--local dockerfile=./pbsclient/docker/Dockerfile \
|
||||
--output type=image,name=git.limbosolutions.com/kb/pbsclient:latest,push=true
|
||||
|
||||
# Build context and Dockerfile
|
||||
context: ./pbsclient
|
||||
dockerfile: ./pbsclient/docker/Dockerfile
|
||||
|
||||
# Image destination
|
||||
destination: git.limbosolutions.com/kb/pbsclient:latest
|
||||
Reference in New Issue
Block a user