react-docker-optimization/.woodpecker/.workflow.yml
hadestructhor 8cf0118374
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful
feat: Simple Dockerfile version
2025-01-06 21:19:24 +01:00

23 lines
No EOL
724 B
YAML

when:
- event: [ tag, manual, push, pull_request ]
steps:
- name: npm install
image: node:18
commands:
- npm install
- name: docker build and publish
when:
- event: [tag, manual, push, pull_request]
image: docker
environment:
DOCKER_USERNAME:
from_secret: docker_public_username
DOCKER_PASSWORD:
from_secret: docker_public_password
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- docker login forgejo.transprot.eu -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- docker build --no-cache -t 'forgejo.transprot.eu/public/react-nginx-alpine:latest' .
- docker push forgejo.transprot.eu/public/react-nginx-alpine:latest