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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tecnalia_robotics-public
templates
Merge requests
!73
Resolve "Force `ddeploy` options (e.g. image retention)"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "Force `ddeploy` options (e.g. image retention)"
43-force-ddeploy-options-e-g-image-retention
into
master
Overview
8
Commits
12
Pipelines
12
Changes
2
Merged
Resolve "Force `ddeploy` options (e.g. image retention)"
Jon Azpiazu
requested to merge
43-force-ddeploy-options-e-g-image-retention
into
master
Nov 9, 2021
Overview
8
Commits
12
Pipelines
12
Changes
2
Closes
#43 (closed)
Edited
Nov 11, 2021
by
Jon Azpiazu
0
0
Merge request reports
Compare
master
version 10
58a0bce5
Nov 23, 2021
version 9
bb00a01f
Nov 11, 2021
version 8
11498a78
Nov 9, 2021
version 7
19433cc2
Nov 9, 2021
version 6
10cdfb0e
Nov 9, 2021
version 5
3518b83b
Nov 9, 2021
version 4
5ffba0f4
Nov 9, 2021
version 3
4c1a0784
Nov 9, 2021
version 2
2c21e985
Nov 9, 2021
version 1
25ae5c49
Nov 9, 2021
master (base)
and
latest version
latest version
d3a1ed95
12 commits,
Nov 23, 2021
version 10
58a0bce5
11 commits,
Nov 23, 2021
version 9
bb00a01f
10 commits,
Nov 11, 2021
version 8
11498a78
9 commits,
Nov 9, 2021
version 7
19433cc2
8 commits,
Nov 9, 2021
version 6
10cdfb0e
7 commits,
Nov 9, 2021
version 5
3518b83b
5 commits,
Nov 9, 2021
version 4
5ffba0f4
4 commits,
Nov 9, 2021
version 3
4c1a0784
3 commits,
Nov 9, 2021
version 2
2c21e985
2 commits,
Nov 9, 2021
version 1
25ae5c49
1 commit,
Nov 9, 2021
2 files
+
37
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
ci-templates/industrial-ci-templates.yml
+
2
−
1
View file @ d3a1ed95
Edit in single-file editor
Open in Web IDE
Show full file
@@ -22,7 +22,7 @@
@@ -22,7 +22,7 @@
DOCKER_PUSH_TAG
:
${CI_COMMIT_REF_SLUG}
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
bash curl jq
# forward the SSH authentication into the Docker executor
# forward the SSH authentication into the Docker executor
-
"
which
ssh-agent
||
(
apk
update
&&
apk
add
openssh-client
)"
-
"
which
ssh-agent
||
(
apk
update
&&
apk
add
openssh-client
)"
-
eval $(ssh-agent -s)
-
eval $(ssh-agent -s)
@@ -42,6 +42,7 @@
@@ -42,6 +42,7 @@
-
ddeploy --yaml ${DDEPLOY_YAML}
-
ddeploy --yaml ${DDEPLOY_YAML}
# 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)'
-
curl -Ls https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/master/scripts/enforce_labels.bash | bash -s -- ${DOCKER_ID}
# Tag and push with the branch or tag name.
# Tag and push with the branch or tag name.
-
echo "Pushing to ${DOCKER_PUSH_REGISTRY}/${DOCKER_PUSH_NAME}:${DOCKER_PUSH_TAG}"
-
echo "Pushing to ${DOCKER_PUSH_REGISTRY}/${DOCKER_PUSH_NAME}:${DOCKER_PUSH_TAG}"
-
docker tag ${DOCKER_ID} ${DOCKER_PUSH_REGISTRY}/${DOCKER_PUSH_NAME}:${DOCKER_PUSH_TAG}
-
docker tag ${DOCKER_ID} ${DOCKER_PUSH_REGISTRY}/${DOCKER_PUSH_NAME}:${DOCKER_PUSH_TAG}
Loading