diff --git a/.woodpecker.yml b/.woodpecker.yml index 3300afc..ab4cde1 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -4,24 +4,20 @@ when: steps: - name: build-and-push - image: gcr.io/kaniko-project/executor:v1.23.2-debug - environment: - REGISTRY_USERNAME: + image: woodpeckerci/plugin-docker-buildx:5.0.0 + settings: + insecure: true + registry: docker-registry.registry.svc.cluster.local:5000 + repo: docker-registry.registry.svc.cluster.local:5000/nxtgauge-frontend-solid + dockerfile: Dockerfile.simple + tags: + - ${CI_COMMIT_SHA} + - latest + - high-performance-latest + username: from_secret: REGISTRY_USERNAME - REGISTRY_PASSWORD: + password: from_secret: REGISTRY_PASSWORD - commands: - - mkdir -p /kaniko/.docker - - echo "{\"auths\":{\"docker-registry.registry.svc.cluster.local:5000\":{\"username\":\"${REGISTRY_USERNAME}\",\"password\":\"${REGISTRY_PASSWORD}\"}}}" > /kaniko/.docker/config.json - - >- - /kaniko/executor - --context . - --dockerfile Dockerfile.simple - --destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-frontend-solid:${CI_COMMIT_SHA} - --destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-frontend-solid:latest - --destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-frontend-solid:high-performance-latest - --cache=true - --cache-repo docker-registry.registry.svc.cluster.local:5000/nxtgauge-frontend-solid-cache - --insecure - --insecure-pull - --skip-tls-verify + platforms: linux/amd64 + cache_from: docker-registry.registry.svc.cluster.local:5000/nxtgauge-frontend-solid:cache + cache_to: docker-registry.registry.svc.cluster.local:5000/nxtgauge-frontend-solid:cache