-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ add deploy demo on push + tmp disable updating yaml file + remove champion usernames from application-demo.properties
- Loading branch information
1 parent
1835ac6
commit 577cc07
Showing
3 changed files
with
20 additions
and
19 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,10 +5,12 @@ on: | |
types: | ||
- closed | ||
branches: [ multitenancy_main ] | ||
push: | ||
branches: [ multitenancy_main ] | ||
|
||
jobs: | ||
update-version: | ||
if: github.event.pull_request.merged == true | ||
# if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
okr-docker-image: ${{ vars.NEW_VALUE_URL }}:${{ steps.store-version.outputs.version}}-DEMO | ||
|
@@ -195,15 +197,15 @@ jobs: | |
wget -q https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY}.tar.gz -O - |\ | ||
tar xz && mv ${BINARY} /usr/local/bin/yq | ||
- name: Update YAML file | ||
shell: bash | ||
env: | ||
COMMITPREFIX: '[CTS]' | ||
run: | | ||
curl -s --header "PRIVATE-TOKEN: ${{secrets.GITLAB_ACCESS_TOKEN}}" "${{vars.TARGET_GITLAB_REPOSITORY}}/files/deployments/overlays/demo/okr-demo-deploy.yaml?ref=${{vars.TARGET_GITLAB_REFERENCE}}" -H "Accept: application/json" -H "Content-Type: application/json" | jq -r '.content' | base64 --decode > response.yaml | ||
yq -i "${{vars.YAML_PATH}} = \"${{needs.update-version.outputs.okr-docker-image}}\"" response.yaml | ||
UPDATED_CONTENT=$(cat response.yaml) | ||
curl --request PUT --header 'PRIVATE-TOKEN: ${{secrets.GITLAB_ACCESS_TOKEN}}' -F "branch=${{vars.TARGET_GITLAB_REFERENCE}}" -F "[email protected]" -F "author_name=GitLab Actions" -F "content=${UPDATED_CONTENT}" -F "commit_message=$COMMITPREFIX Automated changes to ${{vars.FILEPATH_COMMIT}}" "${{vars.TARGET_GITLAB_REPOSITORY}}/files/deployments/overlays/demo/okr-demo-deploy.yaml" | ||
# - name: Update YAML file | ||
# shell: bash | ||
# env: | ||
# COMMITPREFIX: '[CTS]' | ||
# run: | | ||
# curl -s --header "PRIVATE-TOKEN: ${{secrets.GITLAB_ACCESS_TOKEN}}" "${{vars.TARGET_GITLAB_REPOSITORY}}/files/deployments/overlays/demo/okr-demo-deploy.yaml?ref=${{vars.TARGET_GITLAB_REFERENCE}}" -H "Accept: application/json" -H "Content-Type: application/json" | jq -r '.content' | base64 --decode > response.yaml | ||
# yq -i "${{vars.YAML_PATH}} = \"${{needs.update-version.outputs.okr-docker-image}}\"" response.yaml | ||
# UPDATED_CONTENT=$(cat response.yaml) | ||
# curl --request PUT --header 'PRIVATE-TOKEN: ${{secrets.GITLAB_ACCESS_TOKEN}}' -F "branch=${{vars.TARGET_GITLAB_REFERENCE}}" -F "[email protected]" -F "author_name=GitLab Actions" -F "content=${UPDATED_CONTENT}" -F "commit_message=$COMMITPREFIX Automated changes to ${{vars.FILEPATH_COMMIT}}" "${{vars.TARGET_GITLAB_REPOSITORY}}/files/deployments/overlays/demo/okr-demo-deploy.yaml" | ||
|
||
generate-and-push-sbom: | ||
runs-on: ubuntu-latest | ||
|
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
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 |
---|---|---|
|
@@ -20,14 +20,14 @@ values (1, '1'), -- last past quarter | |
(8, '8'), -- future quarter | ||
(999, 'Backlog'); | ||
|
||
insert into person (id, email, firstname, lastname, username, version, is_okr_champion) | ||
values (1, '[email protected]', 'Paco', 'Eggimann', 'peggimann', 1, FALSE), | ||
(11, '[email protected]', 'Alice', 'Wunderland', 'alice', 1, FALSE), | ||
(21, '[email protected]', 'Bob', 'Baumeister', 'bob', 1, FALSE), | ||
(31, '[email protected]', 'Findus', 'Peterson', 'findus', 1, FALSE), | ||
(41, '[email protected]', 'Paco', 'Egiman', 'paco', 1, FALSE), | ||
(51, '[email protected]', 'Robin', 'Papierer', 'robin', 1, FALSE); | ||
(61, '[email protected]', 'gl', 'gl', 'gl', 1, TRUE); | ||
insert into person (id, email, firstname, lastname, version, is_okr_champion) | ||
values (1, '[email protected]', 'Paco', 'Eggimann', 1, FALSE), | ||
(11, '[email protected]', 'Alice', 'Wunderland', 1, FALSE), | ||
(21, '[email protected]', 'Bob', 'Baumeister', 1, FALSE), | ||
(31, '[email protected]', 'Findus', 'Peterson', 1, FALSE), | ||
(41, '[email protected]', 'Paco', 'Egiman', 1, FALSE), | ||
(51, '[email protected]', 'Robin', 'Papierer', 1, FALSE), | ||
(61, '[email protected]', 'gl', 'gl', 1, TRUE); | ||
|
||
insert into team (id, name, version) | ||
values (4, '/BBT', 1), | ||
|