Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kszkepzes-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KSZK
DevTeam
kszkepzes
old
kszkepzes-backend
Commits
49f9f3ae
Commit
49f9f3ae
authored
4 years ago
by
Torma Kristóf
Browse files
Options
Downloads
Patches
Plain Diff
push to docker hub as well
parent
b29626e5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!5
push to docker hub as well
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+13
-1
13 additions, 1 deletion
.gitlab-ci.yml
with
13 additions
and
1 deletion
.gitlab-ci.yml
+
13
−
1
View file @
49f9f3ae
...
...
@@ -51,7 +51,7 @@ Flake8:
# - pip install -r requirements/production.txt
# - python src/manage.py test
Docker build
:
Docker build
to KSZK registry
:
stage
:
Docker Build
tags
:
[
kszk
]
only
:
...
...
@@ -63,6 +63,18 @@ Docker build:
-
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 to Docker Hub registry
:
stage
:
Docker Build
tags
:
[
kszk
]
only
:
-
tags
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
'
'
]
script
:
-
echo "{\"auths\":{\"hub.docker.com\":{\"username\":\"$DOCKERHUB_USER\",\"password\":\"$DOCKERHUB_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CONTAINER_IMAGE
Deploy to Kubernetes
:
stage
:
deploy
image
:
alpine
...
...
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