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
!73
Resolve "Force `ddeploy` options (e.g. image retention)"
Code
Review changes
Check out branch
Download
Patches
Plain diff
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
Jon Azpiazu
requested to merge
43-force-ddeploy-options-e-g-image-retention
into
master
3 years ago
Overview
8
Commits
12
Pipelines
12
Changes
2
Expand
Closes
#43 (closed)
Edited
3 years ago
by
Jon Azpiazu
0
0
Merge request reports
Compare
master
version 10
58a0bce5
3 years ago
version 9
bb00a01f
3 years ago
version 8
11498a78
3 years ago
version 7
19433cc2
3 years ago
version 6
10cdfb0e
3 years ago
version 5
3518b83b
3 years ago
version 4
5ffba0f4
3 years ago
version 3
4c1a0784
3 years ago
version 2
2c21e985
3 years ago
version 1
25ae5c49
3 years ago
master (base)
and
version 9
latest version
d3a1ed95
12 commits,
3 years ago
version 10
58a0bce5
11 commits,
3 years ago
version 9
bb00a01f
10 commits,
3 years ago
version 8
11498a78
9 commits,
3 years ago
version 7
19433cc2
8 commits,
3 years ago
version 6
10cdfb0e
7 commits,
3 years ago
version 5
3518b83b
5 commits,
3 years ago
version 4
5ffba0f4
4 commits,
3 years ago
version 3
4c1a0784
3 commits,
3 years ago
version 2
2c21e985
2 commits,
3 years ago
version 1
25ae5c49
1 commit,
3 years ago
2 files
+
30
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
ci-templates/industrial-ci-templates.yml
+
2
−
1
Options
@@ -22,7 +22,7 @@
DOCKER_PUSH_TAG
:
${CI_COMMIT_REF_SLUG}
DDEPLOY_YAML
:
ddeploy.yaml
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
-
"
which
ssh-agent
||
(
apk
update
&&
apk
add
openssh-client
)"
-
eval $(ssh-agent -s)
@@ -42,6 +42,7 @@
-
ddeploy --yaml ${DDEPLOY_YAML}
# Get ID of image created by ddeploy
-
'
DOCKER_ID=$(docker
images
--format="{{.ID}}"
|
head
-1)'
-
curl -Ls https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/-/raw/43-force-ddeploy-options-e-g-image-retention/scripts/enforce_labels.bash | bash -s -- ${DOCKER_ID}
# Tag and push with the branch or tag name.
-
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}
Loading