Merge pull request 'Using manual docker push' (#35) from test into main
Some checks failed
continuous-integration/drone Build is failing
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #35
This commit was merged in pull request #35.
This commit is contained in:
22
.drone.yml
22
.drone.yml
@@ -28,20 +28,16 @@ steps:
|
||||
from_secret: docker_password
|
||||
commands:
|
||||
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
|
||||
- docker info | grep "Registry"
|
||||
|
||||
- name: docker build and push
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: khwezi/webapitest
|
||||
registry: index.docker.io
|
||||
username:
|
||||
image: docker:20.10
|
||||
environment:
|
||||
DOCKER_USERNAME:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
DOCKER_PASSWORD:
|
||||
from_secret: docker_password
|
||||
dockerfile: Dockerfile
|
||||
context: .
|
||||
force_tag: true
|
||||
tags:
|
||||
- latest
|
||||
- ${DRONE_BUILD_NUMBER}
|
||||
commands:
|
||||
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
|
||||
- docker build -t khwezi/webapitest:latest -t khwezi/webapitest:${DRONE_BUILD_NUMBER} .
|
||||
- docker push khwezi/webapitest:latest
|
||||
- docker push khwezi/webapitest:${DRONE_BUILD_NUMBER}
|
||||
Reference in New Issue
Block a user