Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Docker Machine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
applications
Docker Machine
Commits
bed3a2d9
Commit
bed3a2d9
authored
1 year ago
by
Arran Walker
Browse files
Options
Downloads
Patches
Plain Diff
Fix s3 upload
parent
650d119b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab/ci/scripts/release_s3.sh
+3
-9
3 additions, 9 deletions
.gitlab/ci/scripts/release_s3.sh
with
3 additions
and
9 deletions
.gitlab/ci/scripts/release_s3.sh
+
3
−
9
View file @
bed3a2d9
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
set
-eo
pipefail
set
-eo
pipefail
LATEST_STABLE_TAG
=
$(
git
-c
versionsort.prereleaseSuffix
=
"-rc"
tag
-l
"v*.*.*"
--sort
=
-v
:refname |
awk
'!/rc/'
|
head
-n
1
)
echo
"Latest stable tag is:
${
LATEST_STABLE_TAG
}
"
__aws_s3_sync
()
{
__aws_s3_sync
()
{
local source
=
"
$1
"
local source
=
"
$1
"
local
target
=
"
$2
"
local
target
=
"
$2
"
...
@@ -13,12 +16,7 @@ __aws_s3_sync() {
...
@@ -13,12 +16,7 @@ __aws_s3_sync() {
echo
-e
"
\0
33[32;1mSyncing with
${
target
}
\0
33[0m"
echo
-e
"
\0
33[32;1mSyncing with
${
target
}
\0
33[0m"
if
[[
"
${
DEBUG_S3_SYNC
}
"
==
"true"
]]
;
then
set
-x
fi
aws
${
awsDebug
}
--color
on s3
sync
"
${
source
}
"
"
${
target
}
"
--acl
public-read
aws
${
awsDebug
}
--color
on s3
sync
"
${
source
}
"
"
${
target
}
"
--acl
public-read
set
+x
}
}
VERSION
=
"
$(
./.gitlab/ci/scripts/version.sh 2>/dev/null
||
echo
'dev'
)
"
VERSION
=
"
$(
./.gitlab/ci/scripts/version.sh 2>/dev/null
||
echo
'dev'
)
"
...
@@ -48,10 +46,6 @@ echo "Generated Index page"
...
@@ -48,10 +46,6 @@ echo "Generated Index page"
__aws_s3_sync bin
"
${
S3_URL
}
"
__aws_s3_sync bin
"
${
S3_URL
}
"
# Copy the binaries to the latest directory.
# Copy the binaries to the latest directory.
LATEST_STABLE_TAG
=
$(
git
-c
versionsort.prereleaseSuffix
=
"-rc"
tag
-l
"v*.*.*"
--sort
=
-v
:refname |
awk
'!/rc/'
|
head
-n
1
)
echo
"Latest stable tag is:
${
LATEST_STABLE_TAG
}
"
if
git describe
--exact-match
--match
${
LATEST_STABLE_TAG
}
>
/dev/null 2>&1
;
then
if
git describe
--exact-match
--match
${
LATEST_STABLE_TAG
}
>
/dev/null 2>&1
;
then
echo
"Syncing the 'latest' bucket"
echo
"Syncing the 'latest' bucket"
...
...
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