Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d20a29408f | ||
|
|
78e682d10f |
@@ -4,7 +4,7 @@ when:
|
|||||||
- event: [ deployment,manual ]
|
- event: [ deployment,manual ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: share-data
|
- name: get-share-data
|
||||||
image: minio/mc
|
image: minio/mc
|
||||||
commands:
|
commands:
|
||||||
- echo "ℹ️ Save pipeline info"
|
- echo "ℹ️ Save pipeline info"
|
||||||
@@ -19,6 +19,7 @@ steps:
|
|||||||
echo new version: ${NEW_VERSION}
|
echo new version: ${NEW_VERSION}
|
||||||
curl -o /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar \
|
curl -o /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar \
|
||||||
"https://nexus.cicd.exygen.fr/repository/domaine-passignat/apps/${CI_REPO_NAME}/${NEW_VERSION}/${CI_REPO_NAME}-${VERSION}.tar"
|
"https://nexus.cicd.exygen.fr/repository/domaine-passignat/apps/${CI_REPO_NAME}/${NEW_VERSION}/${CI_REPO_NAME}-${VERSION}.tar"
|
||||||
|
depends_on: [ get-share-data]
|
||||||
|
|
||||||
# Étape 7: Transfert vers le serveur distant (SCP)
|
# Étape 7: Transfert vers le serveur distant (SCP)
|
||||||
- name: transfert
|
- name: transfert
|
||||||
@@ -33,7 +34,7 @@ steps:
|
|||||||
port: 22
|
port: 22
|
||||||
source: /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar
|
source: /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar
|
||||||
target: /tmp/
|
target: /tmp/
|
||||||
depends_on: [ get-artifact ,share-data]
|
depends_on: [ get-artifact ]
|
||||||
|
|
||||||
# Étape 8: Déploiement sur le serveur distant
|
# Étape 8: Déploiement sur le serveur distant
|
||||||
- name: deploy
|
- name: deploy
|
||||||
|
|||||||
1
database/src/sql/version-0.0.42-0.0.43.sql
Normal file
1
database/src/sql/version-0.0.42-0.0.43.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
-- none
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "cicd",
|
"name": "cicd",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.42",
|
"version": "0.0.43",
|
||||||
"description": "Node.js Rest Apis with Express, Sequelize & PostgreSQL",
|
"description": "Node.js Rest Apis with Express, Sequelize & PostgreSQL",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"update:patch": "node scripts/update-version.js -patch",
|
"update:patch": "node scripts/update-version.js -patch",
|
||||||
|
|||||||
Reference in New Issue
Block a user