Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
213d061f0b | ||
|
|
9f43203b94 | ||
|
|
021c4ed2d3 | ||
|
|
d06877bd7d |
1
.woodpecker/builds/102
Normal file
1
.woodpecker/builds/102
Normal file
@@ -0,0 +1 @@
|
||||
NEW_VERSION=0.0.25
|
||||
1
.woodpecker/builds/104
Normal file
1
.woodpecker/builds/104
Normal file
@@ -0,0 +1 @@
|
||||
NEW_VERSION=0.0.26
|
||||
@@ -13,10 +13,11 @@ steps:
|
||||
echo CI_PIPELINE_NUMBER=$CI_PIPELINE_NUMBER
|
||||
echo CI_PREV_PIPELINE_NUMBER=$CI_PREV_PIPELINE_NUMBER
|
||||
echo CI_PREV_PIPELINE_PARENT=$CI_PREV_PIPELINE_PARENT
|
||||
source .woodpecker/$CI_PREV_PIPELINE_NUMBER
|
||||
echo new version: $NEW_VERSION
|
||||
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"
|
||||
ls -als .woodpecker/builds
|
||||
source .woodpecker/builds/$CI_PREV_PIPELINE_NUMBER
|
||||
echo new version: ${NEW_VERSION}
|
||||
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"
|
||||
|
||||
# Étape 7: Transfert vers le serveur distant (SCP)
|
||||
- name: transfert
|
||||
@@ -29,7 +30,7 @@ steps:
|
||||
password:
|
||||
from_secret: remote_password
|
||||
port: 22
|
||||
source: /tmp/${CI_REPO_NAME}-$NEW_VERSION.tar
|
||||
source: /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar
|
||||
target: /tmp/
|
||||
depends_on: [ get-artifact ]
|
||||
|
||||
|
||||
1
database/src/sql/version-0.0.24-0.0.25.sql
Normal file
1
database/src/sql/version-0.0.24-0.0.25.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
1
database/src/sql/version-0.0.25-0.0.26.sql
Normal file
1
database/src/sql/version-0.0.25-0.0.26.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "cicd",
|
||||
"private": true,
|
||||
"version": "0.0.24",
|
||||
"version": "0.0.26",
|
||||
"description": "Node.js Rest Apis with Express, Sequelize & PostgreSQL",
|
||||
"scripts": {
|
||||
"update:patch": "node scripts/update-version.js -patch",
|
||||
|
||||
Reference in New Issue
Block a user