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
|
- name: Start BuildKit
|
||||||
run: |
|
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
|
sleep 3
|
||||||
|
|
||||||
- name: Authenticate to Gitea registry
|
- name: Authenticate to Gitea registry
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.docker
|
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
|
cat > ~/.docker/config.json <<EOF
|
||||||
{
|
{
|
||||||
"auths": {
|
"auths": {
|
||||||
@@ -38,10 +42,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
run: |
|
run: |
|
||||||
ls -lah ./
|
|
||||||
buildctl build \
|
buildctl build \
|
||||||
--frontend=dockerfile.v0 \
|
--frontend=dockerfile.v0 \
|
||||||
--local context=./pbsclient \
|
--local context=./pbsclient \
|
||||||
--local dockerfile=./pbsclient/docker \
|
--local dockerfile=./pbsclient/docker \
|
||||||
|
--opt filename=Dockerfile \
|
||||||
--output type=image,name=git.limbosolutions.com/kb/pbsclient:latest,push=true
|
--output type=image,name=git.limbosolutions.com/kb/pbsclient:latest,push=true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user