Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gateway
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HBP Medical Informatics Platform
gateway
Commits
7db3bf8f
Commit
7db3bf8f
authored
3 years ago
by
Steve Reis
Browse files
Options
Downloads
Patches
Plain Diff
Remove release part as it's the same as the build stage
parent
95e003d3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-22
4 additions, 22 deletions
.gitlab-ci.yml
with
4 additions
and
22 deletions
.gitlab-ci.yml
+
4
−
22
View file @
7db3bf8f
...
...
@@ -8,8 +8,8 @@ stages:
-
deploy
variables
:
CONTAINER_
TEST
_IMAGE
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
CONTAINER_RELEASE_IMAGE
:
$CI_REGISTRY_IMAGE:
latest
CONTAINER_
BASE
_IMAGE
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
CONTAINER_RELEASE_IMAGE
:
$CI_REGISTRY_IMAGE:
stable
CONTAINER_QA_IMAGE
:
$CI_REGISTRY_IMAGE:nightly
before_script
:
...
...
@@ -18,27 +18,9 @@ before_script:
build
:
stage
:
build
script
:
-
docker build -t $CONTAINER_
TEST
_IMAGE .
/api
-
docker push $CONTAINER_
TEST
_IMAGE
-
docker build
--pull
-t $CONTAINER_
BASE
_IMAGE .
-
docker push $CONTAINER_
BASE
_IMAGE
only
:
-
main
-
develop
-
/^release-.*$/
release_prod
:
stage
:
release
script
:
-
docker pull $CONTAINER_TEST_IMAGE
-
docker tag $CONTAINER_TEST_IMAGE $CONTAINER_RELEASE_IMAGE
-
docker push $CONTAINER_RELEASE_IMAGE
only
:
-
main
release_qa
:
stage
:
release
script
:
-
docker pull $CONTAINER_TEST_IMAGE
-
docker tag $CONTAINER_TEST_IMAGE $CONTAINER_RELEASE_IMAGE
-
docker push $CONTAINER_QA_IMAGE
only
:
-
develop
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