-
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.
ci: switch to the Hyperledger secrets in the GitHub actions (#111)
Signed-off-by: Yurii Shynbuiev <[email protected]>
- Loading branch information
1 parent
8b7089f
commit a08387e
Showing
7 changed files
with
52 additions
and
30 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,23 +1,26 @@ | ||
name: Cleanup Package Versions | ||
|
||
# This workflow is executed every Monday at 3:00 AM and deletes outdated versions of packages for the current repository. | ||
# Github Action actions/delete-package-versions@v4 is used. | ||
# Curent renention policy: | ||
# GitHub Action actions/delete-package-versions@v4 is used. | ||
# Current retention policy: | ||
# - Keep 10 last packages | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 3 * * 1" | ||
|
||
permissions: | ||
packages: write | ||
|
||
jobs: | ||
cleanup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/delete-package-versions@v4 | ||
with: | ||
owner: input-output-hk | ||
owner: ${{ github.repository_owner }} | ||
package-name: identus-documentation-portal | ||
package-type: container | ||
min-versions-to-keep: 10 | ||
token: ${{ secrets.ATALA_GITHUB_TOKEN }} | ||
token: ${{ secrets.GITHUB_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
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 |
---|---|---|
|
@@ -7,39 +7,45 @@ on: | |
jobs: | ||
release: | ||
env: | ||
GITHUB_ACTOR: ${{ secrets.ATALA_GITHUB_ACTOR }} | ||
GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }} | ||
ATALA_GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }} | ||
GITHUB_ACTOR: "hyperledger-bot" | ||
GITHUB_ACTOR_EMAIL: "[email protected]" | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
token: ${{ secrets.ATALA_GITHUB_TOKEN }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
ref: ${{ github.event.inputs.release-branch }} | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
|
||
- uses: crazy-max/ghaction-import-gpg@v5 | ||
id: import_gpg | ||
with: | ||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
git_user_signingkey: true | ||
git_commit_gpgsign: true | ||
gpg-private-key: ${{ secrets.HYP_BOT_GPG_PRIVATE }} | ||
passphrase: ${{ secrets.HYP_BOT_GPG_PASSWORD }} | ||
git-user-signingkey: true | ||
git-commit-gpgsign: true | ||
git_config_global: true | ||
git_tag_gpgsign: true | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ secrets.ATALA_GITHUB_ACTOR }} | ||
password: ${{ secrets.ATALA_GITHUB_TOKEN }} | ||
username: ${{ secrets.GITHUB_ACTOR }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build ADRs | ||
run: | | ||
cd ./atala-prism-building-blocks | ||
cd ./atala-prism-building-blocks | ||
npm install -g log4brains | ||
log4brains build --out ../static/adrs --basePath /adrs | ||
touch ../static/adrs/.nojekyll | ||
|
@@ -49,6 +55,7 @@ jobs: | |
GIT_COMMITTER_EMAIL: ${{ steps.import_gpg.outputs.email }} | ||
GIT_AUTHOR_NAME: ${{ steps.import_gpg.outputs.name }} | ||
GIT_COMMITTER_NAME: ${{ steps.import_gpg.outputs.name }} | ||
GITHUB_TOKEN: ${{ secrets.IDENTUS_CI }} | ||
run: | | ||
npm install | ||
npx semantic-release |
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