Merge pull request 'test' (#37) from test into main
Some checks failed
continuous-integration/drone Build encountered an error
Some checks failed
continuous-integration/drone Build encountered an error
Reviewed-on: #37
This commit was merged in pull request #37.
This commit is contained in:
21
.drone.yml
21
.drone.yml
@@ -29,16 +29,15 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
|
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
|
||||||
|
|
||||||
- name: docker build and push
|
- name: build and push
|
||||||
image: docker:20.10
|
image: gcr.io/kaniko-project/executor:latest
|
||||||
privileged: true
|
|
||||||
environment:
|
environment:
|
||||||
DOCKER_USERNAME:
|
DOCKER_CONFIG: /drone/src/.docker
|
||||||
from_secret: docker_username
|
|
||||||
DOCKER_PASSWORD:
|
|
||||||
from_secret: docker_password
|
|
||||||
commands:
|
commands:
|
||||||
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
|
- mkdir -p /drone/src/.docker
|
||||||
- docker build -t khwezi/webapitest:latest -t khwezi/webapitest:${DRONE_BUILD_NUMBER} .
|
- echo $DOCKER_CONFIG_SECRET > /drone/src/.docker/config.json
|
||||||
- docker push khwezi/webapitest:latest
|
- /kaniko/executor
|
||||||
- docker push khwezi/webapitest:${DRONE_BUILD_NUMBER}
|
--context=.
|
||||||
|
--dockerfile=Dockerfile
|
||||||
|
--destination=index.docker.io/khwezi/webapitest:${DRONE_BUILD_NUMBER}
|
||||||
|
--destination=index.docker.io/khwezi/webapitest:latest
|
||||||
Reference in New Issue
Block a user