Files
portfolio/.woodpecker/build.yaml
Taqi Tahmid 06fbf2e4de
Some checks failed
ci/woodpecker/push/build Pipeline failed
ci: try to fix registry
2025-08-23 10:04:59 +03:00

37 lines
1.0 KiB
YAML

when:
- event: [push, pull_request, manual]
branch: [master, feature/*]
steps:
- name: trivy-scan
image: aquasec/trivy:latest
commands:
- trivy fs --scanners vuln,config --exit-code 1 --ignorefile .trivyignore --severity HIGH,CRITICAL frontend/
- name: lint-frontend
image: node:24
commands:
- cd frontend
- npm install
- npm run lint
- name: build-and-publish
image: woodpeckerci/plugin-docker-buildx
settings:
DOCKER_REGISTRY:
from_secret: docker_registry
registry:
from_secret: docker_registry
repo: ${DOCKER_REGISTRY}/taqi/portfolio
tags:
- latest
- 1.0.0-${CI_PIPELINE_NUMBER} # Ref: https://woodpecker-ci.org/docs/usage/environment
skip_tls_verify: false # set to true for testing registries ONLY with self-signed certs
build_args:
- COMMIT_SHA=${CI_COMMIT_SHA}
- COMMIT_AUTHOR_EMAIL=${CI_COMMIT_AUTHOR_EMAIL}
username:
from_secret: docker-username
password:
from_secret: docker-password