This commit is contained in:
Michael Grote 2023-04-20 12:34:28 +02:00
parent 54decf46bb
commit dd1f1daa91

View file

@ -21,15 +21,15 @@ steps:
- name: container
image: docker:dind
environment:
username:
DOCKER_USERNAME:
from_secret: OCI_REGISTRY_USER
password:
DOCKER_PASSWORD:
from_secret: OCI_REGISTRY_PASS
commands:
- 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_BRANCH}
- docker login --username $username --password $password registry.mgrote.net
- docker login registry.mgrote.net
- 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_BRANCH}