Compare commits
2 Commits
ac20b5c2a5
...
738255a440
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
738255a440 | ||
|
|
5bb1111691 |
@@ -8,7 +8,6 @@ variables:
|
|||||||
- &node_image node:18-alpine
|
- &node_image node:18-alpine
|
||||||
- &git_image alpine/git
|
- &git_image alpine/git
|
||||||
- &curl_image curlimages/curl:latest
|
- &curl_image curlimages/curl:latest
|
||||||
- &wdir /tmp/wdir
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Étape 1: Nettoyage du projet, à ajuster
|
# Étape 1: Nettoyage du projet, à ajuster
|
||||||
@@ -19,8 +18,6 @@ steps:
|
|||||||
mkdir *wdir
|
mkdir *wdir
|
||||||
ls *wdir
|
ls *wdir
|
||||||
rm -f *wdir/version.env
|
rm -f *wdir/version.env
|
||||||
volumes:
|
|
||||||
- wdir:wdir
|
|
||||||
|
|
||||||
- name: prepare
|
- name: prepare
|
||||||
image: *git_image
|
image: *git_image
|
||||||
@@ -84,7 +81,6 @@ steps:
|
|||||||
commands: |
|
commands: |
|
||||||
more $CI_WORKSPACE/version.env
|
more $CI_WORKSPACE/version.env
|
||||||
source $CI_WORKSPACE/version.env
|
source $CI_WORKSPACE/version.env
|
||||||
ls -alsR ${CI_WORKSPACE}/artifacts/
|
|
||||||
if [ "$version_type" != "none" ]; then
|
if [ "$version_type" != "none" ]; then
|
||||||
WDIR=${CI_WORKSPACE}/artifacts/$NEW_VERSION
|
WDIR=${CI_WORKSPACE}/artifacts/$NEW_VERSION
|
||||||
echo "create work directory: $WDIR"
|
echo "create work directory: $WDIR"
|
||||||
@@ -95,7 +91,7 @@ steps:
|
|||||||
tar -cf ${CI_WORKSPACE}/artifacts/$artifact -C $WDIR .
|
tar -cf ${CI_WORKSPACE}/artifacts/$artifact -C $WDIR .
|
||||||
ls -als ${CI_WORKSPACE}/artifacts/$artifact
|
ls -als ${CI_WORKSPACE}/artifacts/$artifact
|
||||||
fi
|
fi
|
||||||
ls -alsR ${CI_WORKSPACE}/artifacts/
|
ls -als ${CI_WORKSPACE}/artifacts/
|
||||||
depends_on: [ build ]
|
depends_on: [ build ]
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
|
|||||||
Reference in New Issue
Block a user