Skip to content

Commit

Permalink
ci(gitlab): added opensource pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ron96G committed Dec 8, 2023
1 parent 19ee3d8 commit e7c7445
Showing 1 changed file with 10 additions and 28 deletions.
38 changes: 10 additions & 28 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e7c7445

Please sign in to comment.