summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Carpenter <git@dvn.me>2021-01-08 18:31:10 +0100
committerDevan Carpenter <git@dvn.me>2021-01-08 18:31:10 +0100
commit524db9c3949bf6648c1881ebd1e5bea5c320e856 (patch)
tree99b482834206602b357a95885f96b7fdc5641984
parentcb4d0e13ac3238a8cf9523958eb74a7a6bb70561 (diff)
downloaddream.public.cat-524db9c3949bf6648c1881ebd1e5bea5c320e856.tar.gz
CI: use a docker image which already contains curl
It's a waste of resources to download/install curl for each job. Let's use the "official" curl image instead.
-rw-r--r--.gitlab-ci.yml8
1 files changed, 1 insertions, 7 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a73a73c..d426a36 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,17 +1,11 @@
image:
- name: alpine@sha256:3c7497bf0c7af93428242d6176e8f7905f2201d8fc5861f45be7a346b5f23436
-
-.setup:
- before_script:
- - apk -U add curl
+ name: curlimages/curl@sha256:a3e534fced74aeea171c4b59082f265d66914d09a71062739e5c871ed108a46e
staging:
- extends: .setup
script:
- curl -i -X POST "https://$authuser:$authpass@dream.public.cat/api/deploy/stage"
production:
- extends: .setup
script:
- curl -i -X POST "https://$authuser:$authpass@dream.public.cat/api/deploy/production/$CI_COMMIT_REF_NAME"
only: