Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
C++ project
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
ASTRON Templates
C++ project
Commits
170c1c42
Commit
170c1c42
authored
1 year ago
by
Corné Lukken
Browse files
Options
Downloads
Patches
Plain Diff
CWG-75
: Protect Gitlab secrets, raise awareness
parent
32e05029
No related branches found
No related tags found
1 merge request
!10
CWG-75: Protect Gitlab secrets, raise awareness
Pipeline
#65502
waiting for manual action
Stage: prepare
Stage: linting
Stage: test
Stage: build
Stage: publish
Pipeline: C++ project
#65503
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+8
-0
8 additions, 0 deletions
README.md
{{cookiecutter.project_slug}}/.gitlab-ci.yml
+14
-2
14 additions, 2 deletions
{{cookiecutter.project_slug}}/.gitlab-ci.yml
with
22 additions
and
2 deletions
README.md
+
8
−
0
View file @
170c1c42
...
...
@@ -22,5 +22,13 @@ cookiecutter https://git.astron.nl/templates/cpp-project.git
# Next follow a set of prompts (such as the name and description of the package)
```
## Gitlab security, secrets and role configuration
When using these templates for a repository on git.astron.nl please read the following
pages to configure Gitlab appropriately:
1.
[
Gitlab Repository Configuration
](
https://git.astron.nl/groups/templates/-/wikis/Gitlab-Repository-Configuration
)
2.
[
Continuous delivery guideline
](
https://git.astron.nl/groups/templates/-/wikis/Continuous%20Delivery%20Guideline
)
## License
This project is licensed under the Apache License Version 2.0
This diff is collapsed.
Click to expand it.
{{cookiecutter.project_slug}}/.gitlab-ci.yml
+
14
−
2
View file @
170c1c42
...
...
@@ -129,10 +129,21 @@ pages:
paths
:
-
build/doc/*
release_job
:
stage
:
publish
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
rules
:
-
if
:
'
$CI_COMMIT_TAG
&&
$CI_COMMIT_REF_PROTECTED
==
"true"'
script
:
-
echo "running release_job"
release
:
tag_name
:
'
$CI_COMMIT_TAG'
description
:
'
$CI_COMMIT_TAG'
abi-deploy
:
stage
:
publish
needs
:
[
"
trigger_prepare"
]
environment
:
production
environment
:
abi
script
:
-
cmake --version
-
mkdir build && cd build
...
...
@@ -143,4 +154,5 @@ abi-deploy:
# The syntax is described at https://docs.gitlab.com/ee/user/packages/generic_packages/index.html
-
'
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN"
--upload-file
${APPLICATION_LAST_RELEASE}.dump
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/ABI/${APPLICATION_LAST_RELEASE}/abi.dump"'
rules
:
-
when
:
manual
-
if
:
'
$CI_COMMIT_TAG
&&
$CI_COMMIT_REF_PROTECTED
==
"true"'
-
when
:
manual
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