Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sdptr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
sdptr
Commits
0b44191a
Commit
0b44191a
authored
3 years ago
by
Corné Lukken
Browse files
Options
Downloads
Patches
Plain Diff
Combine previous and current .gitlab-ci.yml
parent
d2c8610c
No related branches found
No related tags found
1 merge request
!36
Resolve L2SDP-534
Pipeline
#23501
passed
3 years ago
Stage: run-opc-ua-test
Changes
1
Pipelines
14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+27
-6
27 additions, 6 deletions
.gitlab-ci.yml
with
27 additions
and
6 deletions
.gitlab-ci.yml
+
27
−
6
View file @
0b44191a
stages
:
-
run-opc-ua-test
-
image
-
run-opc-ua-test
docker-build
:
stage
:
image
image
:
docker:latest
tags
:
-
privileged
only
:
refs
:
-
master
services
:
-
docker:dind
variables
:
DOCKER_TLS_CERTDIR
:
"
/certs"
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script
:
-
|
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
tag=""
echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'latest'"
else
tag=":$CI_COMMIT_REF_SLUG"
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
fi
-
docker build --pull -t "$CI_REGISTRY_IMAGE${tag}" .
-
docker push "$CI_REGISTRY_IMAGE${tag}"
run-opc-ua-test
:
tags
:
-
sdptr
...
...
@@ -10,6 +34,3 @@ run-opc-ua-test:
-
echo "Running OPC UA tests"
-
sleep
60
-
echo "Done"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment