Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
KSZK
DevTeam
kszkepzes
Backend
Commits
ba7b343f
Commit
ba7b343f
authored
Jul 10, 2020
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
disable auto deploy
parent
446c96db
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#4380
passed
Jul 11, 2020
Stage: Test
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+22
-23
22 additions, 23 deletions
.gitlab-ci.yml
with
22 additions
and
23 deletions
.gitlab-ci.yml
+
22
−
23
View file @
ba7b343f
...
@@ -17,27 +17,26 @@ test:
...
@@ -17,27 +17,26 @@ test:
-
npm i
-
npm i
-
npm test
-
npm test
coverage
:
'
/Statements.*?(\d+(?:\.\d+)?)%/'
coverage
:
'
/Statements.*?(\d+(?:\.\d+)?)%/'
# docker build:
# stage: Docker build
# image:
# name: gcr.io/kaniko-project/executor:debug
# entrypoint: ['']
# script:
# - echo "{\"auths\":{\"registry.kszk.bme.hu\":{\"username\":\"$REGISTRY_USER\",\"password\":\"$REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
# - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CONTAINER_IMAGE
docker build
:
# deploy:
stage
:
Docker build
# stage: Deploy
image
:
# tags: [kszk-deploy] # request the custom SSH executor
name
:
gcr.io/kaniko-project/executor:debug
# script: # your deploy logic
entrypoint
:
[
'
'
]
# - echo "$REGISTRY_PASSWORD" | docker login registry.kszk.bme.hu --username $REGISTRY_USER --password-stdin
script
:
# - docker-compose stop
-
echo "{\"auths\":{\"registry.kszk.bme.hu\":{\"username\":\"$REGISTRY_USER\",\"password\":\"$REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
# - docker-compose rm -f
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CONTAINER_IMAGE
# - docker-compose pull
# - docker-compose up -d
deploy
:
# - docker logout registry.kszk.bme.hu
stage
:
Deploy
# variables:
tags
:
[
kszk-deploy
]
# request the custom SSH executor
# SSH_HOST: donald.sch.bme.hu # required
script
:
# your deploy logic
# SSH_USER: kszk-gitlab-deployer # default: kszk-gitlab-deployer
-
echo "$REGISTRY_PASSWORD" | docker login registry.kszk.bme.hu --username $REGISTRY_USER --password-stdin
# SSH_PORT: 10122 # default: 22
-
docker-compose stop
-
docker-compose rm -f
-
docker-compose pull
-
docker-compose up -d
-
docker logout registry.kszk.bme.hu
variables
:
SSH_HOST
:
donald.sch.bme.hu
# required
SSH_USER
:
kszk-gitlab-deployer
# default: kszk-gitlab-deployer
SSH_PORT
:
10122
# default: 22
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