Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aitoolkit-gui
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nomad-lab
aitoolkit-gui
Commits
1450697b
Commit
1450697b
authored
Jan 10, 2022
by
Luigi Sbailo
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
ba5ed90b
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#119356
passed
Jan 10, 2022
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+30
-3
30 additions, 3 deletions
.gitlab-ci.yml
with
30 additions
and
3 deletions
.gitlab-ci.yml
+
30
−
3
View file @
1450697b
...
@@ -12,23 +12,50 @@ stages:
...
@@ -12,23 +12,50 @@ stages:
-
build
-
build
-
deploy
-
deploy
build
:
build
to app
:
stage
:
build
stage
:
build
before_script
:
before_script
:
-
echo "Building the aitoolkit-gui image"
-
echo "Building the aitoolkit-gui image"
script
:
script
:
-
docker login -u ai_toolkit -p ${AI_TOOLKIT_TOKEN} ${APP_REGISTRY}
-
docker login -u ai_toolkit -p ${AI_TOOLKIT_TOKEN} ${APP_REGISTRY}
-
docker pull ${CI_REGISTRY_IMAGE}:latest
-
docker pull ${CI_REGISTRY_IMAGE}:latest
-
docker build --cache-from ${CI_REGISTRY_IMAGE}:latest -t ${CI_REGISTRY_IMAGE}:latest -t ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA} -t ${APP_REGISTRY}:gui -t ${APP_REGISTRY}:gui${CI_COMMIT_SHORT_SHA}
-t ${DEVELOP_REGISTRY}:gui -t ${DEVELOP_REGISTRY}:gui${CI_COMMIT_SHORT_SHA}
.
-
docker build --cache-from ${CI_REGISTRY_IMAGE}:latest -t ${CI_REGISTRY_IMAGE}:latest -t ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA} -t ${APP_REGISTRY}:gui -t ${APP_REGISTRY}:gui${CI_COMMIT_SHORT_SHA} .
-
docker push ${CI_REGISTRY_IMAGE}:latest
-
docker push ${CI_REGISTRY_IMAGE}:latest
-
docker push ${APP_REGISTRY}:gui
-
docker push ${APP_REGISTRY}:gui
-
docker push ${APP_REGISTRY}:gui${CI_COMMIT_SHORT_SHA}
-
docker push ${APP_REGISTRY}:gui${CI_COMMIT_SHORT_SHA}
rules
:
# Execute jobs when a new commit is pushed to master branch
-
if
:
$CI_COMMIT_BRANCH == 'master'
build to develop
:
stage
:
build
before_script
:
-
echo "Building the aitoolkit-gui image"
script
:
-
docker login -u ai_toolkit -p ${AI_TOOLKIT_TOKEN} ${DEVELOP_REGISTRY}
-
docker login -u ai_toolkit -p ${AI_TOOLKIT_TOKEN} ${DEVELOP_REGISTRY}
-
docker pull ${CI_REGISTRY_IMAGE}:latest
-
docker build --cache-from ${CI_REGISTRY_IMAGE}:latest -t ${CI_REGISTRY_IMAGE}:develop -t ${DEVELOP_REGISTRY}:gui -t ${DEVELOP_REGISTRY}:gui${CI_COMMIT_SHORT_SHA} .
-
docker push ${CI_REGISTRY_IMAGE}:develop
-
docker push ${DEVELOP_REGISTRY}:gui${CI_COMMIT_SHORT_SHA}
-
docker push ${DEVELOP_REGISTRY}:gui${CI_COMMIT_SHORT_SHA}
-
docker push ${DEVELOP_REGISTRY}:gui
-
docker push ${DEVELOP_REGISTRY}:gui
rules
:
# Execute jobs when a new commit is pushed to develop branch
-
if
:
$CI_COMMIT_BRANCH == 'develop'
deploy
:
deploy
to app
:
image
:
python:3.6
image
:
python:3.6
stage
:
deploy
stage
:
deploy
script
:
script
:
-
./.gitlab-ci/update_tag_app.sh
-
./.gitlab-ci/update_tag_app.sh
rules
:
# Execute jobs when a new commit is pushed to master branch
-
if
:
$CI_COMMIT_BRANCH == 'master'
deploy to develop
:
image
:
python:3.6
stage
:
deploy
script
:
-
./.gitlab-ci/update_tag_develop.sh
rules
:
# Execute jobs when a new commit is pushed to master branch
-
if
:
$CI_COMMIT_BRANCH == 'develop'
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
sign in
to comment