Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wax-prosemirror
Manage
Activity
Members
Labels
Plan
Issues
34
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wax
wax-prosemirror
Commits
6210566b
Commit
6210566b
authored
9 months ago
by
Yannis Barlas
Browse files
Options
Downloads
Patches
Plain Diff
Update file .gitlab-ci.yml
parent
066cd1b3
No related branches found
No related tags found
No related merge requests found
Pipeline
#61112
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+27
-8
27 additions, 8 deletions
.gitlab-ci.yml
with
27 additions
and
8 deletions
.gitlab-ci.yml
+
27
−
8
View file @
6210566b
variables
:
# include:
IMAGE_NAME_DEPLOY
:
wax-demo
# - project: 'cokoapps/ci'
# ref: main
# file: 'ci-templates.yml'
include
:
variables
:
-
project
:
'
cokoapps/ci'
IMAGE_NAME_DEMO
:
$CI_REGISTRY/wax/wax-prosemirror/wax-demo
ref
:
main
BUILD_PATH
:
.
file
:
'
ci-templates.yml'
stages
:
stages
:
-
Build demo
-
Build demo
-
Deploy demo
-
Deploy demo
build demo image
:
.build demo
:
stage
:
Build demo
image
:
docker:26
services
:
-
docker:26-dind
before_script
:
-
echo "$CI_REGISTRY_PASSWORD" | docker login "$CI_REGISTRY" -u "$CI_REGISTRY_USER" --password-stdin
script
:
-
docker pull $IMAGE_NAME_DEMO:latest ||
true
-
docker build
--cache-from $IMAGE_NAME_DEMO:latest
--tag $IMAGE_NAME_DEMO:$CI_COMMIT_SHA
--tag $IMAGE_NAME_DEMO:latest
-f $BUILD_PATH/Dockerfile-production
$BUILD_PATH
-
docker push $IMAGE_NAME_DEMO:$CI_COMMIT_SHA
-
docker push $IMAGE_NAME_DEMO:latest
.build demo image
:
extends
:
.build production
extends
:
.build production
stage
:
Build demo
stage
:
Build demo
variables
:
variables
:
...
@@ -19,7 +38,7 @@ build demo image:
...
@@ -19,7 +38,7 @@ build demo image:
only
:
only
:
-
master
-
master
deploy demo
:
.
deploy demo
:
extends
:
.deploy
extends
:
.deploy
stage
:
Deploy demo
stage
:
Deploy demo
only
:
only
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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