modified: .gitea/workflows/ docker-image.deploy.yml
Some checks failed
/ build-image (push) Failing after 16s
Some checks failed
/ build-image (push) Failing after 16s
This commit is contained in:
@@ -19,13 +19,17 @@ jobs:
|
||||
|
||||
- name: Start BuildKit
|
||||
run: |
|
||||
buildkitd --oci-worker-no-process-sandbox --root /tmp/buildkit &
|
||||
mkdir -p /run/buildkit
|
||||
buildkitd \
|
||||
--oci-worker-no-process-sandbox \
|
||||
--root /tmp/buildkit \
|
||||
--addr unix:///run/buildkit/buildkitd.sock &
|
||||
sleep 3
|
||||
|
||||
- name: Authenticate to Gitea registry
|
||||
run: |
|
||||
mkdir -p ~/.docker
|
||||
AUTH=$(echo -n "${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_PASSWORD }}" | base64)
|
||||
AUTH=$(echo -n "${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_PASSWORD }}" | base64 -w 0)
|
||||
cat > ~/.docker/config.json <<EOF
|
||||
{
|
||||
"auths": {
|
||||
@@ -38,10 +42,9 @@ jobs:
|
||||
|
||||
- name: Build and push image
|
||||
run: |
|
||||
ls -lah ./
|
||||
buildctl build \
|
||||
--frontend=dockerfile.v0 \
|
||||
--local context=./pbsclient \
|
||||
--local dockerfile=./pbsclient/docker \
|
||||
--opt filename=Dockerfile \
|
||||
--output type=image,name=git.limbosolutions.com/kb/pbsclient:latest,push=true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user