forked from composecraft/composecraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
38 lines (35 loc) · 866 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
stages:
- docker
- deploy
docker-build-and-ship:
image: docker:24.0.5
services:
- docker:24.0.5-dind
stage: docker
only:
- main
before_script:
- echo "$SCW_KEY" | docker login rg.fr-par.scw.cloud/composecraft -u nologin --password-stdin
- docker info
script:
- docker build -t rg.fr-par.scw.cloud/composecraft/composecraft:latest .
- docker push rg.fr-par.scw.cloud/composecraft/composecraft:latest
redeploy-coolify:
image: alpine/curl
stage: deploy
only:
- main
script:
- |
curl https://coolify.composecraft.com/api/v1/deploy\?uuid\=uos8wc0ogwcoo4k00gkkwkw8\&force\=false \
-H "Authorization: Bearer ${COOLIFY_API_KEY}"
cloudflare-purge-cache:
image: alpine/curl
needs:
- redeploy-coolify
stage: deploy
only:
- main
script:
- |
curl ${CLOUDFLARE_URL}