test-woodpecker #1
1 changed files with 4 additions and 9 deletions
|
@ -3,13 +3,8 @@ steps:
|
|||
image: plugins/docker
|
||||
commands:
|
||||
- docker login docker.io -u $${DOCKERHUB_USERNAME} -p $${DOCKERHUB_PASSWORD}
|
||||
secrets: [ dockerhub_username, dockerhub_password ]
|
||||
- name: publish
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: franc00018/point-median-backend
|
||||
registry: https://index.docker.io/v1/
|
||||
tags: latest
|
||||
username: $${DOCKERHUB_USERNAME}
|
||||
password: $${DOCKERHUB_PASSWORD}
|
||||
- export TAG=$(openssl rand -hex 8)
|
||||
- docker build --rm=true -f Dockerfile -t $TAG
|
||||
- docker tag $TAG $${DOCKERHUB_USERNAME}/point-median-backend:latest
|
||||
- docker push $${DOCKERHUB_USERNAME}/point-median-backend:latest
|
||||
secrets: [ dockerhub_username, dockerhub_password ]
|
||||
|
|
Loading…
Reference in a new issue