This commit is contained in:
Adam Štrauch 2021-11-02 15:40:21 +01:00
parent c8f1740c54
commit f610ba7406
Signed by: cx
GPG Key ID: 018304FFA8988F8D

View File

@ -4,13 +4,16 @@ name: image building
steps: steps:
- name: build&push - name: build&push
image: docker:20.10.10-dind image: docker:20.10.10
environment: environment:
username: robot$library+droneci username: robot$library+droneci
password: password:
from_secret: repo_password from_secret: repo_password
repo: harbor.hq.rosti.cz/library/builder repo: harbor.hq.rosti.cz/library/builder
tag: 35 tag: 35
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /drone/src/data:/drone/src/data
commands: commands:
- echo "$password" | docker login -u $username --password-stdin harbor.hq.rosti.cz - echo "$password" | docker login -u $username --password-stdin harbor.hq.rosti.cz
- docker build -t $repo:$tag . - docker build -t $repo:$tag .