-
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.
Merge pull request #2 from postindustria-tech/gh-refact
CI refactoring
- Loading branch information
Showing
31 changed files
with
296 additions
and
615 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Monthly Copyright Update | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
dryrun: | ||
default: 'false' | ||
description: Dry Run | ||
schedule: | ||
- cron: '0 0 1 * *' | ||
|
||
jobs: | ||
Monthly_Copyright_Update: | ||
uses: 51Degrees/common-ci/.github/workflows/monthly-copyright-update.yml@main | ||
with: | ||
repo-name: ${{ github.event.repository.name }} | ||
org-name: ${{ github.event.repository.owner.login }} | ||
dryrun: ${{ inputs.dryrun }} | ||
secrets: | ||
token: ${{ secrets.ACCESS_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Nightly Documentation Update | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
dryrun: | ||
default: 'false' | ||
description: Dry Run | ||
schedule: | ||
- cron: '0 1 * * *' | ||
|
||
jobs: | ||
Nightly_Documentation_Update: | ||
uses: 51Degrees/common-ci/.github/workflows/nightly-documentation-update.yml@main | ||
with: | ||
repo-name: ${{ github.event.repository.name }} | ||
org-name: ${{ github.event.repository.owner.login }} | ||
dryrun: ${{ inputs.dryrun }} | ||
secrets: | ||
token: ${{ secrets.ACCESS_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Nightly PRs to Main | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
dryrun: | ||
default: 'false' | ||
description: Dry Run | ||
schedule: | ||
- cron: '0 1 * * *' | ||
|
||
jobs: | ||
Nightly_PRs_to_Main: | ||
uses: 51Degrees/common-ci/.github/workflows/nightly-prs-to-main.yml@main | ||
with: | ||
repo-name: ${{ github.event.repository.name }} | ||
org-name: ${{ github.event.repository.owner.login }} | ||
dryrun: ${{ inputs.dryrun }} | ||
secrets: | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
asset-keys: '{"TestResourceKey": "${{ secrets.SUPER_RESOURCE_KEY}}"}' |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Nightly Publish Main | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
dryrun: | ||
default: 'false' | ||
description: Dry Run | ||
schedule: | ||
- cron: '0 1 * * *' | ||
|
||
jobs: | ||
Nightly_Publish_Main: | ||
uses: 51Degrees/common-ci/.github/workflows/nightly-publish-main.yml@main | ||
with: | ||
repo-name: ${{ github.event.repository.name }} | ||
org-name: ${{ github.event.repository.owner.login }} | ||
dryrun: ${{ inputs.dryrun }} | ||
build-platform: ubuntu-latest | ||
secrets: | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
asset-keys: '{"TestResourceKey": "${{ secrets.SUPER_RESOURCE_KEY}}", "PypiToken": "${{ secrets.PYPI_TOKEN }}"}' |
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,3 +0,0 @@ | ||
[submodule "ci/common-ci"] | ||
path = ci/common-ci | ||
url = ../common-ci | ||
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,2 +1,10 @@ | ||
# API Specific CI/CD Approach | ||
This API complies with the `common-ci` approach. | ||
This API complies with the `common-ci` approach. | ||
|
||
The following secrets are required: | ||
* `ACCESS_TOKEN` - GitHub [access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#about-personal-access-tokens) for cloning repos, creating PRs, etc. | ||
* Example: `github_pat_l0ng_r4nd0m_s7r1ng` | ||
* `SUPER_RESOURCE_KEY` - [resource key](https://51degrees.com/documentation/4.4/_info__resource_keys.html) for integration tests | ||
* Example: `R4nd0m-S7r1ng` | ||
* `PYPI_TOKEN` - [PyPI token](https://pypi.org/help/#apitoken) for publishing packages | ||
* Example: `pypi-sUp3r-l0nG_r4nd0m-s7r1Ng` |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Write-Output "No pre-build requirements needed" |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
param ( | ||
[Parameter(Mandatory=$true)] | ||
[string]$RepoName, | ||
[Parameter(Mandatory=$true)] | ||
[string]$Version | ||
) | ||
|
||
./python/build-package-pypi.ps1 -RepoName $RepoName -Version $Version -Packages . | ||
|
||
exit $LASTEXITCODE |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
param ( | ||
[Parameter(Mandatory=$true)] | ||
[string]$RepoName | ||
) | ||
|
||
./python/build-project.ps1 -RepoName $RepoName -Packages . | ||
|
||
exit $LASTEXITCODE |
Submodule common-ci
deleted from
705020
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.