Update .drone.yml
This commit is contained in:
parent
eb81a2e4bd
commit
d970aa5d7d
36
.drone.yml
36
.drone.yml
@ -0,0 +1,36 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
context: .
|
||||
tags:
|
||||
- latest
|
||||
- ${DRONE_COMMIT_SHA}
|
||||
|
||||
- name: publish
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: your_dockerhub_username/your_image_name
|
||||
tags:
|
||||
- latest
|
||||
- ${DRONE_COMMIT_SHA}
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
branch:
|
||||
- main
|
||||
- master
|
||||
|
||||
# Define secrets for Docker Hub credentials
|
||||
secrets:
|
||||
- docker_username
|
||||
- docker_password
|
Loading…
x
Reference in New Issue
Block a user