Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kubetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
ConduitMiau
kubetest
Commits
f461db4d
Commit
f461db4d
authored
3 years ago
by
M9713
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
fb46590d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#483245
failed
3 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+11
-12
11 additions, 12 deletions
.gitlab-ci.yml
with
11 additions
and
12 deletions
.gitlab-ci.yml
+
11
−
12
View file @
f461db4d
...
@@ -6,8 +6,7 @@
...
@@ -6,8 +6,7 @@
# - template: DAST.gitlab-ci.yml
# - template: DAST.gitlab-ci.yml
stages
:
stages
:
# - build backend
-
build
-
build frontend
# - test
# - test
# - deploy mongodb
# - deploy mongodb
# - deploy backend
# - deploy backend
...
@@ -22,8 +21,8 @@ stages:
...
@@ -22,8 +21,8 @@ stages:
# DAST_AUTH_PASSWORD: “DAST”
# DAST_AUTH_PASSWORD: “DAST”
# SAST_GOSEC_LEVEL: 2
# SAST_GOSEC_LEVEL: 2
#
build backend:
build backend
:
#
stage: build
backend
stage
:
build
# when: manual
# when: manual
...
@@ -35,18 +34,18 @@ stages:
...
@@ -35,18 +34,18 @@ stages:
#Build Backend
#Build Backend
#
- echo "Building Backend"
-
echo "Building Backend"
#
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
#
- /kaniko/executor
-
/kaniko/executor
#
--context git://gitlab.labranet.jamk.fi/conduitmiau/conduit-backend/
--context git://gitlab.labranet.jamk.fi/conduitmiau/conduit-backend/
#
--dockerfile Dockerfile
--dockerfile Dockerfile
#
--destination $CI_REGISTRY_IMAGE:backend-$CI_COMMIT_SHORT_SHA
--destination $CI_REGISTRY_IMAGE:backend-$CI_COMMIT_SHORT_SHA
build frontend
:
build frontend
:
stage
:
build
frontend
stage
:
build
# when: manual
# when: manual
...
@@ -61,7 +60,7 @@ build frontend:
...
@@ -61,7 +60,7 @@ build frontend:
-
echo "Building Frontend"
-
echo "Building Frontend"
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor
-
/kaniko/executor
--context $CI_PROJECT_DIR
--context $CI_PROJECT_DIR
/conduit-front
--dockerfile $CI_PROJECT_DIR/conduit-front/Dockerfile
--dockerfile $CI_PROJECT_DIR/conduit-front/Dockerfile
--destination $CI_REGISTRY_IMAGE:front-$CI_COMMIT_SHORT_SHA
--destination $CI_REGISTRY_IMAGE:front-$CI_COMMIT_SHORT_SHA
...
...
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