This commit is contained in:
Michael Grote 2023-04-20 12:32:24 +02:00
parent 24a756c2fd
commit 54decf46bb

View file

@ -27,12 +27,12 @@ steps:
from_secret: OCI_REGISTRY_PASS from_secret: OCI_REGISTRY_PASS
commands: commands:
- docker build -t registry.mgrote.net/allzweckcontainer:latest . - docker build -t registry.mgrote.net/allzweckcontainer:latest .
- docker tag registry.mgrote.net/allzweckcontainer:latest registry.mgrote.net/allzweckcontainer:${DRONE_COMMIT_SHA:0:8} #- docker tag registry.mgrote.net/allzweckcontainer:latest registry.mgrote.net/allzweckcontainer:${DRONE_COMMIT_SHA:0:8}
- docker tag registry.mgrote.net/allzweckcontainer:latest registry.mgrote.net/allzweckcontainer:${DRONE_COMMIT_BRANCH} # - docker tag registry.mgrote.net/allzweckcontainer:latest registry.mgrote.net/allzweckcontainer:${DRONE_COMMIT_BRANCH}
- docker login --username $username --password $password registry.mgrote.net - docker login --username $username --password $password registry.mgrote.net
- docker push registry.mgrote.net/allzweckcontainer:latest - docker push registry.mgrote.net/allzweckcontainer:latest
- docker push registry.mgrote.net/allzweckcontainer:${DRONE_COMMIT_SHA:0:8} # - docker push registry.mgrote.net/allzweckcontainer:${DRONE_COMMIT_SHA:0:8}
- docker push registry.mgrote.net/allzweckcontainer:${DRONE_COMMIT_BRANCH} # - docker push registry.mgrote.net/allzweckcontainer:${DRONE_COMMIT_BRANCH}
volumes: volumes:
- name: dockersock - name: dockersock
path: /var/run/docker.sock path: /var/run/docker.sock