generated from telekom/reuse-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(gitlab): added opensource pipeline
- Loading branch information
Showing
1 changed file
with
10 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,34 +5,16 @@ | |
include: | ||
- project: dhei/teams/hyperion/dev/src/foundation-build | ||
file: /pipelines/java-maven-docker-release-pipeline.yaml | ||
ref: 16.0.3 | ||
ref: main | ||
- project: "dhei/teams/hyperion/dev/src/foundation-build" | ||
file: "/pipelines/opensource-pipeline.yaml" | ||
ref: main | ||
rules: | ||
- if: $CI_PROJECT_NAME == "stargate-jumper" | ||
|
||
variables: | ||
PUSH_TO_HARBOR: "true" | ||
MTR_TARGET_IMAGE: ${CI_PROJECT_NAME} | ||
|
||
reuse-lint: | ||
stage: test | ||
image: | ||
name: "dockerhub.devops.telekom.de/python:3" | ||
entrypoint: [""] | ||
needs: [] | ||
rules: | ||
- when: always | ||
before_script: >- | ||
python3 -m pip install --user --upgrade pipx && | ||
python3 -m pipx ensurepath && | ||
source ~/.bashrc | ||
script: | ||
- pipx run reuse lint | ||
|
||
github-sync: | ||
stage: .post | ||
needs: [] | ||
rules: | ||
- when: manual | ||
script: | ||
- git remote add github https://[email protected]/telekom/stargate-jumper.git | ||
- git remote -v | ||
- git remote update | ||
- git checkout -b $CI_COMMIT_BRANCH | ||
- git push --set-upstream github $CI_COMMIT_BRANCH | ||
GITHUB_PROJECT_PATH: "telekom/stargate-jumper" | ||
GITLAB_PROJECT_PATH: "dhei/teams/hyperion/dev/src/jumper-sse" | ||
GITLAB_SOURCE_BRANCH: main |