summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: a73a73c2752705279a9882db19bcb0805f000a88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
image:
  name: alpine@sha256:3c7497bf0c7af93428242d6176e8f7905f2201d8fc5861f45be7a346b5f23436 

.setup:
  before_script:
    - apk -U add curl

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:
    - tags
  except:
    - branches