publish website when push on master
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
32
.drone.yml
32
.drone.yml
@@ -7,16 +7,34 @@ steps:
|
||||
- name: build
|
||||
image: docker:dind
|
||||
environment:
|
||||
COMPOSE_PROJECT_NAME: adv-testing-${DRONE_COMMIT_BRANCH//\//-}
|
||||
NUXT_APP_BASE_URL: /adv/${DRONE_COMMIT_BRANCH}/
|
||||
SERVICE_3000_CHECK_HTTP: /adv/${DRONE_COMMIT_BRANCH}/
|
||||
SERVICE_3000_TAGS: urlprefix-testing.asycn.io/adv/${DRONE_COMMIT_BRANCH}/*
|
||||
COMPOSE_PROJECT_NAME: ${DRONE_REPO_NAME}-testing-${DRONE_COMMIT_BRANCH//\//-}
|
||||
NUXT_APP_BASE_URL: /${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_COMMIT_BRANCH}/
|
||||
SERVICE_3000_CHECK_HTTP: /${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_COMMIT_BRANCH}/
|
||||
SERVICE_3000_TAGS: urlprefix-testing.asycn.io/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_COMMIT_BRANCH}/*
|
||||
commands:
|
||||
- docker compose -f docker/docker-compose.yml -f docker/docker-compose.labels.yml up --build -d
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run/docker.sock
|
||||
|
||||
- name: publish
|
||||
image: cschlosser/drone-ftps
|
||||
environment:
|
||||
FTP_USERNAME:
|
||||
from_secret: ftp_username
|
||||
FTP_PASSWORD:
|
||||
from_secret: ftp_password
|
||||
PLUGIN_HOSTNAME: open.us.org:21
|
||||
PLUGIN_SRC_DIR: .output/public/
|
||||
PLUGIN_DEST_DIR: /dav/www/
|
||||
PLUGIN_SECURE: true
|
||||
PLUGIN_VERIFY: false
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- push
|
||||
|
||||
- name: notify
|
||||
image: appleboy/drone-telegram
|
||||
when:
|
||||
@@ -31,14 +49,14 @@ steps:
|
||||
format: markdown
|
||||
message: >
|
||||
{{#success build.status}}
|
||||
✅ `{{commit.email}}` a mis à jour la branche `{{commit.branch}}` sur le repo `{{repo.name}}`:
|
||||
✅ `{{commit.author}}` a mis à jour la branche `{{commit.branch}}` sur le repo `{{repo.name}}`:
|
||||
```
|
||||
{{commit.message}}
|
||||
```
|
||||
🌐 https://testing.asycn.io/adv/{{commit.branch}}/
|
||||
🌐 https://testing.asycn.io/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/{{commit.branch}}/
|
||||
{{else}}
|
||||
❌ Le build #{{build.number}} du repo `{{repo.name}}` est un gros fail...
|
||||
📝 Commit de {{commit.email}} sur la branche `{{commit.branch}}`:
|
||||
📝 Commit de {{commit.author}} sur la branche `{{commit.branch}}`:
|
||||
```
|
||||
{{commit.message}}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user