good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pggat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository 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
gfx
pggat
Commits
35f80f21
Commit
35f80f21
authored
1 year ago
by
Garet Halliday
Browse files
Options
Downloads
Patches
Plain Diff
ci
parent
1fdfa462
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.jsonnet
+37
-0
37 additions, 0 deletions
.gitlab-ci.jsonnet
.gitlab-ci.yml
+19
-0
19 additions, 0 deletions
.gitlab-ci.yml
cgat.Dockerfile
+0
-0
0 additions, 0 deletions
cgat.Dockerfile
with
56 additions
and
0 deletions
.gitlab-ci.jsonnet
0 → 100644
+
37
−
0
View file @
35f80f21
local
jobs
=
[
{
name
:
"cgat"
,
merge
:
{}},
];
local
param_job
(
image
,
tag_var
,
merge
=
{})
=
std
.
mergePatch
({
stage
:
'build'
,
image
:
{
name
:
'gcr.io/kaniko-project/executor:debug'
,
entrypoint
:
[
''
],
},
script
:
[
'mkdir -p /kaniko/.docker'
,
@
'echo "{
\"
auths
\"
:{
\"
${CI_REGISTRY}
\"
:{
\"
auth
\"
:
\"
$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64)
\"
}}}" > /kaniko/.docker/config.json'
,
std
.
strReplace
(
|||
/kaniko/executor
--context ${CI_PROJECT_DIR}
--cache=true
--build-arg GOPROXY
--cache-repo="${CI_REGISTRY_IMAGE}/kaniko/cache"
--registry-mirror=mirror.gfx.cafe
--registry-mirror=mirror.gcr.io
--registry-mirror=index.docker.io
--dockerfile "${CI_PROJECT_DIR}/%(img)s.Dockerfile"
--destination "${CI_REGISTRY_IMAGE}/%(img)s:%(tag_var)s"
--destination "${CI_REGISTRY_IMAGE}/%(img)s:latest"
|||
%
{
img
:
image
,
tag_var
:
tag_var
},
"
\n
"
,
" "
),
]
},
merge
);
{
[
job
.
name
+
"-tag"
]:
param_job
(
job
.
name
,
"${CI_COMMIT_TAG}"
,
std
.
mergePatch
(
job
.
merge
,
{
only
:[
"tags"
]}))
for
job
in
jobs
}
+
{
[
job
.
name
+
"-master"
]:
param_job
(
job
.
name
,
"master"
,
std
.
mergePatch
(
job
.
merge
,
{
only
:{
refs
:[
"master"
]}}))
for
job
in
jobs
}
+
{
[
job
.
name
]:
param_job
(
job
.
name
,
"${CI_COMMIT_SHORT_SHA}"
,
job
.
merge
)
for
job
in
jobs
}
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
0 → 100644
+
19
−
0
View file @
35f80f21
jsonnet
:
stage
:
build
image
:
alpine:latest
script
:
-
apk add -U jsonnet
-
jsonnet .gitlab-ci.jsonnet > generated-config.yml
artifacts
:
paths
:
-
generated-config.yml
trigger-builds
:
stage
:
build
needs
:
-
jsonnet
trigger
:
include
:
-
artifact
:
generated-config.yml
job
:
jsonnet
strategy
:
depend
This diff is collapsed.
Click to expand it.
Dockerfile
→
cgat.
Dockerfile
+
0
−
0
View file @
35f80f21
File moved
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