Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nghyd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Cassiopée
nghyd
Commits
7915eefa
Commit
7915eefa
authored
2 years ago
by
François Grand
Browse files
Options
Downloads
Patches
Plain Diff
refactor(ci): remove password argument to deploy-version.sh
refs
#564
parent
397f150a
No related branches found
No related tags found
1 merge request
!163
Resolve "Deploy devel branch on cassiopee-dev.g-eau.fr"
Pipeline
#139800
passed
2 years ago
Stage: install
Stage: build
Stage: clean-stale-branches
Stage: deploy-dev
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
scripts/deploy-version.sh
+4
-5
4 additions, 5 deletions
scripts/deploy-version.sh
with
6 additions
and
7 deletions
.gitlab-ci.yml
+
2
−
2
View file @
7915eefa
...
...
@@ -124,7 +124,7 @@ deploy-ovh-dev:
-
build
script
:
# Copie de la branche / du tag
-
./scripts/deploy-version.sh prod $PROD_LOGIN $PROD_HOST $PROD_DEV_PATH
$PROD_PASS
-
./scripts/deploy-version.sh prod $PROD_LOGIN $PROD_HOST $PROD_DEV_PATH
deploy-prod
:
stage
:
deploy-prod
...
...
@@ -134,7 +134,7 @@ deploy-prod:
dependencies
:
-
build
script
:
-
./scripts/deploy-version.sh prod $PROD_LOGIN $PROD_HOST $PROD_PATH
$PROD_PASS
-
./scripts/deploy-version.sh prod $PROD_LOGIN $PROD_HOST $PROD_PATH
releases-nightly
:
stage
:
releases-nightly
...
...
This diff is collapsed.
Click to expand it.
scripts/deploy-version.sh
+
4
−
5
View file @
7915eefa
...
...
@@ -2,11 +2,11 @@
set
-o
errexit
# deploie l'appli sur le serveur $3 (user $2
/mot de passe $5
) dans le dossier $4 et met à jour le fichier index.html
# si la version est "
stable
"
# deploie l'appli sur le serveur $3 (user $2) dans le dossier $4 et met à jour le fichier index.html
# si la version est "
prod
"
if
((
$#
< 4
||
$#
>
5
))
;
then
echo
"usage:
$0
<version> <login> <server> <path>
[<password>]
"
if
((
$#
< 4
))
;
then
echo
"usage:
$0
<version> <login> <server> <path>"
exit
1
fi
...
...
@@ -14,7 +14,6 @@ VERSION="$1"
LOGIN
=
"
$2
"
HOST
=
"
$3
"
DIR
=
"
$4
"
PASS
=
"
$5
"
echo
"
$(
basename
$0
)
: deploying version
$VERSION
in
$LOGIN
@
$HOST
:
$DIR
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment