Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tutorial-nequip
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Monitor
Service Desk
Analyze
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
nomad-lab
ai-toolkit
tutorial-nequip
Commits
57938f6f
Commit
57938f6f
authored
1 year ago
by
Adam Fekete
Browse files
Options
Downloads
Patches
Plain Diff
update build process
parent
78804360
No related branches found
No related tags found
No related merge requests found
Pipeline
#174694
passed
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+9
-7
9 additions, 7 deletions
.gitlab-ci.yml
with
9 additions
and
7 deletions
.gitlab-ci.yml
+
9
−
7
View file @
57938f6f
...
@@ -2,16 +2,18 @@ build:
...
@@ -2,16 +2,18 @@ build:
stage
:
build
stage
:
build
tags
:
tags
:
-
docker-builder
-
docker-builder
image
:
docker:latest
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
variables
:
variables
:
DOCKER_BUILDKIT
:
1
IMAGE_TAG
:
latest
GIT_SUBMODULE_STRATEGY
:
recursive
GIT_SUBMODULE_STRATEGY
:
recursive
GIT_SUBMODULE_DEPTH
:
1
GIT_SUBMODULE_DEPTH
:
1
GIT_SUBMODULE_UPDATE_FLAGS
:
--jobs
4
GIT_SUBMODULE_UPDATE_FLAGS
:
--jobs
4
before_script
:
before_script
:
-
docker info
-
echo "{\"auths\":{\"${CI_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"},\"$CI_DEPENDENCY_PROXY_SERVER\":{\"auth\":\"$(printf "%s:%s" ${CI_DEPENDENCY_PROXY_USER} "${CI_DEPENDENCY_PROXY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker pull $CI_REGISTRY_IMAGE:latest ||
true
script
:
script
:
-
docker build --tag $CI_REGISTRY_IMAGE:latest .
-
/kaniko/executor
-
docker push $CI_REGISTRY_IMAGE:latest
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "${CI_REGISTRY_IMAGE}:${IMAGE_TAG}"
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