Files
test-pipeline/.woodpecker.yml
T

25 lines
611 B
YAML

when:
- event: [push, pull_request]
steps:
build:
image: node:20-alpine
commands:
- echo "Build OK"
- node --version
push:
image: docker:dind
environment:
REGISTRY: registry.atsatel.com
REGISTRY_USER:
from_secret: registry_user
REGISTRY_PASSWORD:
from_secret: registry_password
commands:
- docker login $REGISTRY -u $REGISTRY_USER -p $REGISTRY_PASSWORD
- docker build -t $REGISTRY/test-pipeline:${CI_COMMIT_SHA} .
- docker push $REGISTRY/test-pipeline:${CI_COMMIT_SHA}
when:
- event: push
branch: main