push to docker hub

This commit is contained in:
Torma Kristóf 2022-01-31 21:52:44 +01:00
parent dc8b297376
commit b9a0180eaa

View File

@ -15,10 +15,15 @@ steps:
from_secret: DOCKER_PASSWORD
commands:
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin registry.kmlabz.com
- echo "$DOCKERHUB_PASSWORD" | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
- docker build -t registry.kmlabz.com/$DRONE_REPO .
- docker build -t registry.kmlabz.com/$DRONE_REPO:$DRONE_BUILD_NUMBER .
- docker build -t $DRONE_REPO .
- docker build -t $DRONE_REPO:$DRONE_BUILD_NUMBER .
- docker push registry.kmlabz.com/$DRONE_REPO
- docker push registry.kmlabz.com/$DRONE_REPO:$DRONE_BUILD_NUMBER
- docker push $DRONE_REPO
- docker push $DRONE_REPO:$DRONE_BUILD_NUMBER
- name: ms-teams
image: kuperiu/drone-teams