Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
templates
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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tecnalia_robotics-public
templates
Merge requests
!70
You need to sign in or sign up before continuing.
Resolve "Update deprecated deploy job"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Update deprecated deploy job"
38-update-deprecated-deploy-job
into
master
Overview
70
Commits
43
Pipelines
38
Changes
1
Merged
Iñigo Moreno i Caireta
requested to merge
38-update-deprecated-deploy-job
into
master
3 years ago
Overview
18
Commits
43
Pipelines
38
Changes
1
Expand
Closes
#38 (closed)
Edited
3 years ago
by
Iñigo Moreno i Caireta
0
0
Merge request reports
Viewing commit
3f455ccb
Prev
Next
Show latest version
1 file
+
3
−
2
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
3f455ccb
Allow editing push tag
· 3f455ccb
Iñigo Moreno i Caireta
authored
3 years ago
ci-templates/industrial-ci-templates.yml
+
3
−
2
Options
@@ -19,6 +19,7 @@
@@ -19,6 +19,7 @@
variables
:
variables
:
DOCKER_PUSH_REGISTRY
:
${ARTIFACT_DOCKER_URL}
DOCKER_PUSH_REGISTRY
:
${ARTIFACT_DOCKER_URL}
DOCKER_PUSH_NAME
:
${CI_PROJECT_PATH}
DOCKER_PUSH_NAME
:
${CI_PROJECT_PATH}
DOCKER_PUSH_TAG
:
${CI_COMMIT_REF_SLUG}
DDEPLOY_YAML
:
ddeploy.yaml
DDEPLOY_YAML
:
ddeploy.yaml
before_script
:
before_script
:
-
apk add --update python3 git py3-pip git-lfs
-
apk add --update python3 git py3-pip git-lfs
@@ -42,8 +43,8 @@
@@ -42,8 +43,8 @@
# Get ID of image created by ddeploy
# Get ID of image created by ddeploy
-
'
DOCKER_ID=$(docker
images
--format="{{.ID}}"
|
head
-1)'
-
'
DOCKER_ID=$(docker
images
--format="{{.ID}}"
|
head
-1)'
# Tag and push with the branch or tag name.
# Tag and push with the branch or tag name.
-
docker tag ${DOCKER_ID} ${DOCKER_PUSH_REGISTRY}/${DOCKER_PUSH_NAME}:${
CI_COMMIT_REF_SLU
G}
-
docker tag ${DOCKER_ID} ${DOCKER_PUSH_REGISTRY}/${DOCKER_PUSH_NAME}:${
DOCKER_PUSH_TA
G}
-
docker push ${DOCKER_PUSH_REGISTRY}/${DOCKER_PUSH_NAME}:${
CI_COMMIT_REF_SLU
G}
-
docker push ${DOCKER_PUSH_REGISTRY}/${DOCKER_PUSH_NAME}:${
DOCKER_PUSH_TA
G}
# Tag and push with commit sha
# Tag and push with commit sha
-
docker tag ${DOCKER_ID} ${DOCKER_PUSH_REGISTRY}/${DOCKER_PUSH_NAME}:${CI_COMMIT_SHA}
-
docker tag ${DOCKER_ID} ${DOCKER_PUSH_REGISTRY}/${DOCKER_PUSH_NAME}:${CI_COMMIT_SHA}
-
docker push ${DOCKER_PUSH_REGISTRY}/${DOCKER_PUSH_NAME}:${CI_COMMIT_SHA}
-
docker push ${DOCKER_PUSH_REGISTRY}/${DOCKER_PUSH_NAME}:${CI_COMMIT_SHA}
Loading