- Change .woodpecker.yml to use Dockerfile (multi-stage) instead of Dockerfile.simple - Add .dockerignore to exclude node_modules and build artifacts - Reduces image size to avoid 413 Payload Too Large error
24 lines
572 B
YAML
24 lines
572 B
YAML
when:
|
|
branch: [main, high-performance]
|
|
event: push
|
|
|
|
steps:
|
|
- name: build-and-push
|
|
image: woodpeckerci/plugin-kaniko:2.1.1
|
|
settings:
|
|
registry: registry.nxtgauge.com
|
|
repo: nxtgauge-frontend-solid
|
|
dockerfile: Dockerfile
|
|
tags:
|
|
- ${CI_COMMIT_SHA}
|
|
- latest
|
|
- high-performance-latest
|
|
username:
|
|
from_secret: REGISTRY_USERNAME
|
|
password:
|
|
from_secret: REGISTRY_PASSWORD
|
|
insecure: true
|
|
insecure_pull: true
|
|
skip_tls_verify: true
|
|
platforms: linux/amd64
|
|
cache: false
|