Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
Frontend V2
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
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
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
GraphPolaris
Frontend V2
Commits
0132c263
Commit
0132c263
authored
3 years ago
by
thijsheijden
Browse files
Options
Downloads
Patches
Plain Diff
Added Docker stage
parent
f869db2a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+20
-0
20 additions, 0 deletions
.gitlab-ci.yml
with
20 additions
and
0 deletions
.gitlab-ci.yml
+
20
−
0
View file @
0132c263
...
@@ -2,6 +2,8 @@ image: node:16-alpine
...
@@ -2,6 +2,8 @@ image: node:16-alpine
stages
:
stages
:
-
setup
-
setup
-
test
-
test
-
docker
-
deploy
install-dependencies
:
install-dependencies
:
stage
:
setup
stage
:
setup
...
@@ -44,3 +46,21 @@ test:
...
@@ -44,3 +46,21 @@ test:
extends
:
.distributed
extends
:
.distributed
script
:
script
:
-
yarn nx affected --base=HEAD~1 --target=test --parallel --max-parallel=2
-
yarn nx affected --base=HEAD~1 --target=test --parallel --max-parallel=2
build-docker
:
image
:
docker:stable
stage
:
docker
tags
:
-
docker
only
:
-
main
-
develop
script
:
-
docker build --progress plain -f ./apps/frontend/Dockerfile . -t $CI_PROJECT_NAME:latest
after_script
:
-
docker login datastropheregistry.azurecr.io -u $REGISTRY_USERNAME -p $REGISTRY_PASSWORD
-
if [[ ! -z $CI_COMMIT_BRANCH+x ]]; then DOCKER_TAG=$CI_COMMIT_BRANCH; else DOCKER_TAG=$CI_MERGE_REQUEST_TARGET_BRANCH_NAME; fi
-
docker tag $CI_PROJECT_NAME datastropheregistry.azurecr.io/$CI_PROJECT_NAME:$DOCKER_TAG
-
docker push datastropheregistry.azurecr.io/$CI_PROJECT_NAME:$DOCKER_TAG
dependencies
:
-
build
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