Sthope acfcb95dbd
All checks were successful
continuous-integration/drone/push Build is passing
Update .drone.yml
2024-05-27 18:24:14 +02:00

46 lines
888 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: build
image: plugins/docker
settings:
repo: sthopeless/my-nginx-website
tags:
- latest
- ${DRONE_COMMIT_SHA}
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: Dockerfile
dry_run: true
purge: false
- name: publish
image: plugins/docker
settings:
repo: sthopeless/my-nginx-website
tags:
- latest
- ${DRONE_COMMIT_SHA}
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: Dockerfile
dry_run: true
purge: true
when:
event:
- push
branch:
- main
- master
# Define secrets for Docker Hub credentials
secrets:
- docker_username
- docker_password