UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
G
GitLab
Gitlab
gitlab-task-runner
Commits
fa25ddce
Commit
fa25ddce
authored
Apr 22, 2021
by
Al Fontaine
Browse files
Merge branch 'development' into 'master'
Development See merge request
!71
parents
ca43beaf
987dbada
Pipeline
#233996
passed with stages
in 49 minutes and 3 seconds
Changes
4
Pipelines
10
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
11 deletions
+12
-11
Dockerfile
Dockerfile
+2
-2
build-scripts/build.sh
build-scripts/build.sh
+1
-1
hardening_manifest.yaml
hardening_manifest.yaml
+7
-7
scripts/lib/object_storage_backup.rb
scripts/lib/object_storage_backup.rb
+2
-1
No files found.
Dockerfile
View file @
fa25ddce
ARG
GITLAB_VERSION=v13.10.
0
-ubi8
ARG
GITLAB_VERSION=v13.10.
3
-ubi8
ARG
BASE_REGISTRY=nexus-docker-secure.levelup-nexus.svc.cluster.local:18082
ARG
BASE_REGISTRY=nexus-docker-secure.levelup-nexus.svc.cluster.local:18082
ARG
BASE_IMAGE=gitlab/gitlab/gitlab-rails
ARG
BASE_IMAGE=gitlab/gitlab/gitlab-rails
ARG
BASE_TAG=13.10.
0
ARG
BASE_TAG=13.10.
3
ARG
RAILS_IMAGE=${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
ARG
RAILS_IMAGE=${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
...
...
build-scripts/build.sh
View file @
fa25ddce
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
set
-euxo
pipefail
set
-euxo
pipefail
TAG
=
${
1
:-
13
.10.
0
}
TAG
=
${
1
:-
13
.10.
3
}
REPOSITORY
=
${
2
:-}
REPOSITORY
=
${
2
:-}
DOCKER_OPTS
=
${
DOCKER_OPTS
:-
""
}
DOCKER_OPTS
=
${
DOCKER_OPTS
:-
""
}
...
...
hardening_manifest.yaml
View file @
fa25ddce
...
@@ -5,12 +5,12 @@ name: "gitlab/gitlab/gitlab-task-runner"
...
@@ -5,12 +5,12 @@ name: "gitlab/gitlab/gitlab-task-runner"
# The most specific version should be the first tag and will be shown
# The most specific version should be the first tag and will be shown
# on ironbank.dsop.io
# on ironbank.dsop.io
tags
:
tags
:
-
"
13.10.
0
"
-
"
13.10.
3
"
-
"
latest"
-
"
latest"
# Build args passed to Dockerfile ARGs
# Build args passed to Dockerfile ARGs
args
:
args
:
BASE_IMAGE
:
"
gitlab/gitlab/gitlab-rails"
BASE_IMAGE
:
"
gitlab/gitlab/gitlab-rails"
BASE_TAG
:
"
13.10.
0
"
BASE_TAG
:
"
13.10.
3
"
# Docker image labels
# Docker image labels
labels
:
labels
:
org.opencontainers.image.title
:
"
Gitlab
Task
Runner"
org.opencontainers.image.title
:
"
Gitlab
Task
Runner"
...
@@ -22,7 +22,7 @@ labels:
...
@@ -22,7 +22,7 @@ labels:
org.opencontainers.image.url
:
"
https://about.gitlab.com/"
org.opencontainers.image.url
:
"
https://about.gitlab.com/"
## Name of the distributing entity, organization or individual
## Name of the distributing entity, organization or individual
org.opencontainers.image.vendor
:
"
Gitlab"
org.opencontainers.image.vendor
:
"
Gitlab"
org.opencontainers.image.version
:
"
13.10.
0
"
org.opencontainers.image.version
:
"
13.10.
3
"
## Keywords to help with search (ex. "cicd,gitops,golang")
## Keywords to help with search (ex. "cicd,gitops,golang")
mil.dso.ironbank.image.keywords
:
"
gitlab,
git,
gitops"
mil.dso.ironbank.image.keywords
:
"
gitlab,
git,
gitops"
## This value can be "opensource" or "commercial"
## This value can be "opensource" or "commercial"
...
@@ -43,13 +43,13 @@ maintainers:
...
@@ -43,13 +43,13 @@ maintainers:
username
:
"
alfontaine"
username
:
"
alfontaine"
email
:
"
alan.fontaine@centauricorp.com"
email
:
"
alan.fontaine@centauricorp.com"
resources
:
resources
:
-
url
:
"
https://gitlab-ubi.s3.amazonaws.com/ubi8-build-dependencies-v13.10.
0
-ubi8/gitlab-task-runner-ee.tar.gz"
-
url
:
"
https://gitlab-ubi.s3.amazonaws.com/ubi8-build-dependencies-v13.10.
3
-ubi8/gitlab-task-runner-ee.tar.gz"
filename
:
"
gitlab-task-runner-ee.tar.gz"
filename
:
"
gitlab-task-runner-ee.tar.gz"
validation
:
validation
:
type
:
"
sha256"
type
:
"
sha256"
value
:
"
7324b972fa0c7a47dd6647ee161ded8cb6d8d9872a84244447eb9421306a7acd
"
value
:
"
8dda22421e7617f76a2d3e1e3315aecde837dac7b8d987203c2eb0ceeae4077b
"
-
url
:
"
https://gitlab-ubi.s3.amazonaws.com/ubi8-build-dependencies-v13.10.
0
-ubi8/gitlab-python.tar.gz"
-
url
:
"
https://gitlab-ubi.s3.amazonaws.com/ubi8-build-dependencies-v13.10.
3
-ubi8/gitlab-python.tar.gz"
filename
:
"
gitlab-python.tar.gz"
filename
:
"
gitlab-python.tar.gz"
validation
:
validation
:
type
:
"
sha256"
type
:
"
sha256"
value
:
"
3e24e604dc632bd8ce5af666dfb2ff0b82615cc43a213cfd70d8b47700121ff9
"
value
:
"
cc08b0efbcd78877f7ed57607fdc46674871bdb94c3ec98329356fb5aafea5ba
"
scripts/lib/object_storage_backup.rb
View file @
fa25ddce
...
@@ -20,7 +20,8 @@ class ObjectStorageBackup
...
@@ -20,7 +20,8 @@ class ObjectStorageBackup
def
backup
def
backup
if
@backend
==
"s3"
if
@backend
==
"s3"
check_bucket_cmd
=
%W(s3cmd ls s3://
#{
@remote_bucket_name
}
)
# Check bucket existence by listing, limit 1 to optimize
check_bucket_cmd
=
%W(s3cmd --limit=1 ls s3://
#{
@remote_bucket_name
}
)
cmd
=
%W(s3cmd --stop-on-error --delete-removed sync s3://
#{
@remote_bucket_name
}
/ /srv/gitlab/tmp/
#{
@name
}
/)
cmd
=
%W(s3cmd --stop-on-error --delete-removed sync s3://
#{
@remote_bucket_name
}
/ /srv/gitlab/tmp/
#{
@name
}
/)
elsif
@backend
==
"gcs"
elsif
@backend
==
"gcs"
check_bucket_cmd
=
%W(gsutil ls gs://
#{
@remote_bucket_name
}
)
check_bucket_cmd
=
%W(gsutil ls gs://
#{
@remote_bucket_name
}
)
...
...
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