Push to docker hub

This commit is contained in:
Georg Krause 2020-07-16 12:07:37 +02:00
parent 4fe7638e13
commit 7497885a0d
No known key found for this signature in database
GPG key ID: FD479B9A4D48E632

View file

@ -14,3 +14,14 @@ steps:
- name: build
commands:
- docker build -t gcrkrause/cryptpad:$(git submodule status | awk -F"[()]" '{print $2}') . --no-cache
- docker tag gcrkrause/cryptpad gcrkrause/cryptpad:latest
- name: push
environment:
USERNAME:
from_secret: docker-hub-user
PASSWORD:
from_secret: docker-hub-pw
commands:
- docker login -u $USERNAME -p $PASSWORD
- docker push gcrkrause/cryptpad:latest
- docker push gcrkrause/cryptpad:$(git submodule status | awk -F"[()]" '{print $2}')