login before pulling image
authorArmaan Bhojwani <code@armaanb.net>
Sat, 19 Dec 2020 18:48:50 +0000 (13:48 -0500)
committerArmaan Bhojwani <code@armaanb.net>
Sat, 19 Dec 2020 18:48:50 +0000 (13:48 -0500)
.build.yml

index 4f3e42c6314940b5d034b7a8272aaaf334af1414..1ec1e820d3da78e037326d3a343da9417875e463 100644 (file)
@@ -8,9 +8,9 @@ secrets:
 tasks:
   - prep: |
       sudo systemctl start docker
+      cat ~/docker.txt | docker login --username armaancicd --password-stdin
   - build: |
       cd tall.bot
       sudo docker build -t armaanb/tall.bot:latest .
   - push: |
-      cat ~/docker.txt | docker login --username armaancicd --password-stdin
       docker push armaanb/tall.bot