push book to docker hub
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Cadey Ratio 2020-05-15 16:21:36 -04:00
parent cd86aaf844
commit 360d5d2894
2 changed files with 9 additions and 1 deletions

View File

@ -23,6 +23,14 @@ steps:
path: /var/run/docker.sock path: /var/run/docker.sock
commands: commands:
- docker load -i /lewa/result/docker.tgz - docker load -i /lewa/result/docker.tgz
- "docker tag within/lewa-book within/lewa-book:$DRONE_COMMIT"
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
- docker push within/lewa-book:$DRONE_COMMIT
environment:
DOCKER_USERNAME:
from_secret: DOCKER_USERNAME
DOCKER_PASSWORD:
from_secret: DOCKER_PASSWORD
volumes: volumes:
- name: book - name: book

View File

@ -34,7 +34,7 @@ let
''; '';
}; };
in pkgs.dockerTools.buildLayeredImage { in pkgs.dockerTools.buildLayeredImage {
name = "xena/lewa-book"; name = "within/lewa-book";
tag = version; tag = version;
contents = [ nur.repos.xe.quickserv book ]; contents = [ nur.repos.xe.quickserv book ];
config.Cmd = [ "/bin/quickserv" "-port=9001" "-dir=/book" ]; config.Cmd = [ "/bin/quickserv" "-port=9001" "-dir=/book" ];