-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Pavan K Manda <[email protected]>
- Loading branch information
Showing
78 changed files
with
2,739 additions
and
1,892 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
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
name: CI/CD Pipeline | ||
on: [push, pull_request, workflow_dispatch] | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
verify: | ||
|
@@ -46,9 +50,8 @@ jobs: | |
- name: running integration tests | ||
env: | ||
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }} | ||
CONFIGURATION_GOVERNANCE_ENV: ${{ secrets.CONFIGURATION_GOVERNANCE_ENV }} | ||
RESOURCE_GROUP_ID: ${{ secrets.RESOURCE_GROUP_ID }} | ||
SCC_ENV: ${{ secrets.SCC_ENV }} | ||
SECURITY_AND_COMPLIANCE_CENTER_API_IAM_PROFILE_ID: ${{ secrets.SCC_IAM_PROFILE_ID }} | ||
run: build/testScript.sh | ||
|
||
release: | ||
|
@@ -62,7 +65,12 @@ jobs: | |
- name: setting up nodejs | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
node-version: '18' | ||
|
||
- name: setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: releasing using semantic-release | ||
env: | ||
|
@@ -72,13 +80,13 @@ jobs: | |
GIT_COMMITTER_NAME: sccdeveloper | ||
GIT_COMMITTER_EMAIL: [email protected] | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install python | ||
pip install --user bumpversion | ||
npm install @semantic-release/changelog | ||
npm install @semantic-release/exec | ||
npm install @semantic-release/git | ||
npm install @semantic-release/github | ||
rm -rf package.json | ||
rm -rf package-lock.json | ||
npx semantic-release | ||
publish: | ||
|
@@ -134,10 +142,17 @@ jobs: | |
run: build/prepareJavadoc.sh | ||
|
||
- name: deploying javadocs to gh-pages | ||
uses: crazy-max/ghaction-github-pages@v1 | ||
with: | ||
target_branch: gh-pages | ||
build_dir: javadocs | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "sccdeveloper" | ||
git config --global user.password "${{ secrets.ADMIN_TOKEN }}" | ||
cd v4/dist | ||
git init | ||
git add . | ||
git commit -m "Deploy to GitHub pages" | ||
git branch -m gh-pages | ||
git remote add origin https://github.com/IBM/scc-java-sdk | ||
git push -f origin gh-pages | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ADMIN_TOKEN }} | ||
GIT_AUTHOR_NAME: sccdeveloper | ||
|
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
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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
curl https://us-south.functions.appdomain.cloud/api/v1/web/e6b54af6-ab44-4149-a8e4-e906dcc58136/default/secadvstg-location-shift.json | ||
echo "${CONFIGURATION_GOVERNANCE_ENV}" | base64 -d >> configuration_governance_v1.env | ||
echo "${SCC_ENV}" | base64 -d >> security_and_compliance_center_api_v3.env | ||
mvn clean verify |
Oops, something went wrong.