From 22a38c49cef30074041a0c5b91d8942bfe8bb180 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Thu, 12 Nov 2020 16:08:00 +0100 Subject: [PATCH] Disable docker build --- .builds/docker.yml | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 .builds/docker.yml diff --git a/.builds/docker.yml b/.builds/docker.yml deleted file mode 100644 index 0f45793..0000000 --- a/.builds/docker.yml +++ /dev/null @@ -1,34 +0,0 @@ -image: archlinux -packages: - - docker -sources: - - https://git.sr.ht/~crocmagnon/blog -secrets: - - 388c4445-d732-440b-8ff5-fc5dfb46f04a # Scaleway Docker registry password - - 78118477-73c2-4805-a613-c7aab23c92a8 # SSH config for blog - - 5c948915-48c2-4542-8fc1-a5676f4d7126 # Deploy SSH key -environment: - TESTING: true - DEPS_LATEST: rg.fr-par.scw.cloud/crocmagnon/blog:deps-latest - BLOG_LATEST: rg.fr-par.scw.cloud/crocmagnon/blog:latest -tasks: - - setup_docker: | - ./blog/docker/setup-docker - - build_and_test: | - docker login rg.fr-par.scw.cloud/crocmagnon -u nologin --password-stdin < .docker-secret - cd blog - docker pull $BLOG_LATEST || true - docker pull $DEPS_LATEST || true - - docker build --pull --target venv --cache-from $DEPS_LATEST -t $DEPS_LATEST . - docker build --pull --target prod --cache-from $BLOG_LATEST --cache-from $DEPS_LATEST -t $BLOG_LATEST -f Dockerfile . - docker run --rm -t $BLOG_LATEST /app/docker/runtests.sh - - docker push $BLOG_LATEST - docker push $DEPS_LATEST - - deploy: | - ssh blog -o StrictHostKeyChecking=no "/home/gaugendre/blog/redeploy" -triggers: - - action: email - condition: failure - to: Gabriel Augendre