Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
s3-object-expirer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker
s3-object-expirer
Commits
df3da6f9
Commit
df3da6f9
authored
5 years ago
by
Erick Hitter
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix/path' into 'master'
Fix dependency path See merge request
!4
parents
dfa1a71e
e19c5a11
Branches
master
No related tags found
1 merge request
!4
Fix dependency path
Pipeline
#2001
passed with stages
Stage:
Stage:
in 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
context/s3-purge.sh
+2
-2
2 additions, 2 deletions
context/s3-purge.sh
with
2 additions
and
2 deletions
context/s3-purge.sh
+
2
−
2
View file @
df3da6f9
...
...
@@ -9,7 +9,7 @@ export EXPIRE_AGE_DAYS
echo
'======'
date
s3cmd
--config
=
/s3_config
ls
s3://
"
${
BUCKET_NAME
}
"
|
while
read
-r
LINE
;
/usr/local/bin/
s3cmd
--config
=
/s3_config
ls
s3://
"
${
BUCKET_NAME
}
"
|
while
read
-r
LINE
;
do
CREATE_DATE
=
$(
echo
"
$LINE
"
|
awk
'{print $1" "$2}'
)
CREATE_DATE
=
$(
date
-d
"
$CREATE_DATE
"
+%s
)
...
...
@@ -21,7 +21,7 @@ s3cmd --config=/s3_config ls s3://"${BUCKET_NAME}" | while read -r LINE;
echo
"
$FILE_NAME
"
if
[[
$FILE_NAME
!=
""
]]
then
s3cmd
--config
=
/s3_config del
"
$FILE_NAME
"
/usr/local/bin/
s3cmd
--config
=
/s3_config del
"
$FILE_NAME
"
fi
fi
done
;
...
...
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