Compare commits
14 Commits
c4297c7c25
...
v0.0.29
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
72073176d2 | ||
|
|
532000fc31 | ||
|
|
0a7169ec69 | ||
|
|
b8e748103d | ||
|
|
7bd7dc0e62 | ||
|
|
68710f91f4 | ||
|
|
fd19361e35 | ||
|
|
213d061f0b | ||
|
|
9f43203b94 | ||
|
|
021c4ed2d3 | ||
|
|
d06877bd7d | ||
|
|
19625f0c13 | ||
|
|
bcf510b936 | ||
|
|
f6139782b4 |
@@ -149,9 +149,12 @@ steps:
|
||||
git config user.name "Woodpecker CI"
|
||||
|
||||
echo "ℹ️ Save pipeline info"
|
||||
mkdir -p .woodpecker/builds/
|
||||
echo NEW_VERSION=$NEW_VERSION > .woodpecker/builds/$CI_PIPELINE_NUMBER
|
||||
git add .woodpecker/builds/$CI_PIPELINE_NUMBER 2>/dev/null || true
|
||||
env
|
||||
BUILD=/shared/builds/$CI_REPO_REMOTE_ID/$CI_PIPELINE_NUMBER
|
||||
mkdir -p /shared/builds/$CI_REPO_REMOTE_ID/
|
||||
echo NEW_VERSION=$NEW_VERSION > $BUILD
|
||||
echo NEW_VERSION=$NEW_VERSION > $BUILD
|
||||
git add $BUILD 2>/dev/null || true
|
||||
|
||||
echo "ℹ️ add generated files (sql)"
|
||||
git add ./database/src/sql/*.sql 2>/dev/null || true
|
||||
|
||||
1
.woodpecker/builds/100
Normal file
1
.woodpecker/builds/100
Normal file
@@ -0,0 +1 @@
|
||||
NEW_VERSION=0.0.24
|
||||
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
|
||||
1
.woodpecker/builds/106
Normal file
1
.woodpecker/builds/106
Normal file
@@ -0,0 +1 @@
|
||||
NEW_VERSION=0.0.27
|
||||
1
.woodpecker/builds/3/108
Normal file
1
.woodpecker/builds/3/108
Normal file
@@ -0,0 +1 @@
|
||||
NEW_VERSION=0.0.28
|
||||
1
.woodpecker/builds/98
Normal file
1
.woodpecker/builds/98
Normal file
@@ -0,0 +1 @@
|
||||
NEW_VERSION=0.0.23
|
||||
@@ -7,14 +7,13 @@ steps:
|
||||
- name: get-artifact
|
||||
image: curlimages/curl:latest
|
||||
commands: |
|
||||
echo CI_PIPELINE_PARENT=$CI_PIPELINE_PARENT
|
||||
echo CI_COMMIT_TAG=$CI_COMMIT_TAG
|
||||
echo CI_PIPELINE_EVENT=$CI_PIPELINE_EVENT
|
||||
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
|
||||
curl -o /tmp/${CI_REPO_NAME}-${VERSION}.tar \
|
||||
"https://nexus.cicd.exygen.fr/repository/domaine-passignat/apps/${CI_REPO_NAME}/${VERSION}/${CI_REPO_NAME}-${VERSION}.tar"
|
||||
env
|
||||
BUILD=/shared/builds/$CI_REPO_REMOTE_ID/$CI_PIPELINE_PARENT
|
||||
ls -als /shared/builds/$CI_REPO_REMOTE_ID/
|
||||
source $BUILD
|
||||
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
|
||||
@@ -27,7 +26,7 @@ steps:
|
||||
password:
|
||||
from_secret: remote_password
|
||||
port: 22
|
||||
source: /tmp/${CI_REPO_NAME}-${VERSION}.tar
|
||||
source: /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar
|
||||
target: /tmp/
|
||||
depends_on: [ get-artifact ]
|
||||
|
||||
|
||||
1
database/src/sql/version-0.0.22-0.0.23.sql
Normal file
1
database/src/sql/version-0.0.22-0.0.23.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
1
database/src/sql/version-0.0.23-0.0.24.sql
Normal file
1
database/src/sql/version-0.0.23-0.0.24.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
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
database/src/sql/version-0.0.26-0.0.27.sql
Normal file
1
database/src/sql/version-0.0.26-0.0.27.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
1
database/src/sql/version-0.0.27-0.0.28.sql
Normal file
1
database/src/sql/version-0.0.27-0.0.28.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
1
database/src/sql/version-0.0.28-0.0.29.sql
Normal file
1
database/src/sql/version-0.0.28-0.0.29.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "cicd",
|
||||
"private": true,
|
||||
"version": "0.0.22",
|
||||
"version": "0.0.29",
|
||||
"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