From 524db9c3949bf6648c1881ebd1e5bea5c320e856 Mon Sep 17 00:00:00 2001 From: Devan Carpenter Date: Fri, 8 Jan 2021 18:31:10 +0100 Subject: 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. --- .gitlab-ci.yml | 8 +------- 1 file changed, 1 insertion(+), 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: -- cgit v1.2.3