Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Release Engineering
Public
toolkit
Commits
a0187dbf
Verified
Commit
a0187dbf
authored
Nov 10, 2021
by
Louis Abel
📺
Browse files
try pushd
parent
8918a2b3
Pipeline
#105
passed with stage
in 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sync/minor-release-sync-to-staging.sh
View file @
a0187dbf
...
...
@@ -11,7 +11,7 @@ MAJ=${RLVER}
# sync all pieces of a release, including extras, nfv, etc
for
COMPOSE
in
"
${
NONSIG_COMPOSE
[@]
}
"
;
do
echo
"
${
COMPOSE
}
: Syncing"
c
d
"/mnt/compose/
${
MAJ
}
/latest-
${
COMPOSE
}
-
${
MAJ
}
/compose"
||
{
echo
"
${
COMPOSE
}
: Failed to change directory"
;
break
;
}
push
d
"/mnt/compose/
${
MAJ
}
/latest-
${
COMPOSE
}
-
${
MAJ
}
/compose"
||
{
echo
"
${
COMPOSE
}
: Failed to change directory"
;
break
;
}
TARGET
=
"
${
STAGING_ROOT
}
/
${
CATEGORY_STUB
}
/
${
REV
}
"
mkdir
-p
"
${
TARGET
}
"
...
...
@@ -22,7 +22,7 @@ for COMPOSE in "${NONSIG_COMPOSE[@]}"; do
{}
"
${
TARGET
}
"
# Return back to where we started
c
d
"
$(
dirname
"
$0
"
)
"
||
{
echo
"
${
COMPOSE
}
: Failed to change back"
;
break
;
}
pop
d
"
$(
dirname
"
$0
"
)
"
||
{
echo
"
${
COMPOSE
}
: Failed to change back"
;
break
;
}
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment