Fix docker login

This commit is contained in:
Gabriel Augendre 2020-09-12 16:31:05 +02:00
parent f163a56b7f
commit 3846456cb2
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -4,7 +4,7 @@ packages:
sources: sources:
- https://git.sr.ht/~crocmagnon/blog - https://git.sr.ht/~crocmagnon/blog
secrets: secrets:
- 2da6ddc6-3d12-4306-a1e4-8268c6194386 - 388c4445-d732-440b-8ff5-fc5dfb46f04a
- 29bc352f-0807-46e9-a4ef-2f869f94afa3 - 29bc352f-0807-46e9-a4ef-2f869f94afa3
- 5c948915-48c2-4542-8fc1-a5676f4d7126 - 5c948915-48c2-4542-8fc1-a5676f4d7126
environment: environment:
@ -15,7 +15,7 @@ tasks:
- setup_docker: | - setup_docker: |
./blog/docker/setup-docker ./blog/docker/setup-docker
- build_and_test: | - build_and_test: |
docker login -u crocmagnon --password-stdin < .docker-secret docker login rg.fr-par.scw.cloud/crocmagnon -u nologin --password-stdin < .docker-secret
cd blog cd blog
docker pull $BLOG_IMAGE || true docker pull $BLOG_IMAGE || true
docker build --pull --cache-from $BLOG_LATEST -t $BLOG_LATEST -f Dockerfile . docker build --pull --cache-from $BLOG_LATEST -t $BLOG_LATEST -f Dockerfile .