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
!83
Resolve "Ddeploy job failing when enforcing labels"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Ddeploy job failing when enforcing labels"
52-ddeploy-job-failing-when-enforcing-labels
into
master
Overview
5
Commits
4
Pipelines
5
Changes
1
1 unresolved thread
Hide all comments
Merged
Iñigo Moreno i Caireta
requested to merge
52-ddeploy-job-failing-when-enforcing-labels
into
master
1 year ago
Overview
5
Commits
4
Pipelines
5
Changes
1
1 unresolved thread
Hide all comments
Expand
Closes
#52 (closed)
0
0
Merge request reports
Viewing commit
0536cf0a
Prev
Next
Show latest version
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
0536cf0a
Allow changing branch from which pulling enforce_labels
· 0536cf0a
Iñigo Moreno i Caireta
authored
1 year ago
ci-templates/industrial-ci-templates.yml
+
2
−
1
Options
@@ -21,6 +21,7 @@
DOCKER_PUSH_NAME
:
${CI_PROJECT_PATH}
DOCKER_PUSH_TAG
:
${CI_COMMIT_REF_NAME}
DDEPLOY_YAML
:
ddeploy.yaml
GITLAB_TEMPLATES_BRANCH
:
master
before_script
:
-
apk add --update python3 git py3-pip git-lfs bash curl jq
# forward the SSH authentication into the Docker executor
@@ -42,7 +43,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/
master
/scripts/enforce_labels.bash | bash -s -- ${DOCKER_ID}
-
curl -Ls https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/
${GITLAB_TEMPLATES_BRANCH}
/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