Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Ceph Webapp Poc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Jacopo Gasparetto
Ceph Webapp Poc
Merge requests
!10
fix(ci-cd): Add version to backend images
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix(ci-cd): Add version to backend images
dev
into
main
Overview
1
Commits
1
Pipelines
1
Changes
1
Merged
Jacopo Gasparetto
requested to merge
dev
into
main
1 year ago
Overview
1
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
7bbbb239
Show latest version
1 file
+
3
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
7bbbb239
feat(ci-cd): Add version to backend images
· 7bbbb239
Jacopo Gasparetto
authored
1 year ago
.gitlab-ci.yml
+
3
−
2
Options
@@ -45,9 +45,10 @@ build-backend:
-
docker:dind
before_script
:
-
docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
-
VERSION="$(cat version.txt)"
script
:
-
docker build --pull -t
$
CI_REGISTRY_IMAGE/backend:
$CI_COMMIT_REF_SLUG
backend
-
docker push
$
CI_REGISTRY_IMAGE/backend:
$CI_COMMIT_REF_SLUG
-
docker build --pull -t
"${
CI_REGISTRY_IMAGE
}
/backend:
v${VERSION}"
backend
-
docker push
"${
CI_REGISTRY_IMAGE
}
/backend:
v${VERSION}"
only
:
changes
:
-
.gitlab-ci.yml
Loading