react-docker-optimization/.woodpecker/.workflow.yml

19 lines
659 B
YAML
Raw Normal View History

2025-01-03 23:24:22 +01:00
when:
- event: [ tag, manual, push, pull_request ]
steps:
- 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
2025-01-04 18:38:48 +01:00
- docker build --no-cache -t 'forgejo.transprot.eu/public/react-multistage-alpine:latest' .
- docker push forgejo.transprot.eu/public/react-multistage-alpine:latest