Skip to content

Commit

Permalink
Merge pull request #580 from radixdlt/DO-2056-use-forked-gha
Browse files Browse the repository at this point in the history
ci: use forked github actions [DO-2056]
  • Loading branch information
marek-karwacki-rdx authored Dec 7, 2023
2 parents b3c35e9 + cd69aae commit 5046012
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/actions/fetch-secrets/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ runs:
using: "composite"
steps:
- name: Install AWS CLI
uses: unfor19/install-aws-cli-action@ee0eb151cf1bca186ccf8c35d314b08d62e0e878 # v1
uses: RDXWorks-actions/install-aws-cli-action@master
with:
version: 2

Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
scan_image: true
snyk_target_ref: ${{ github.ref_name }}
cache_tag_suffix: "AMD"

docker-database-migrations-private-arm:
name: ARM Migration
needs:
Expand Down Expand Up @@ -199,7 +199,7 @@ jobs:
scan_image: true
snyk_target_ref: ${{ github.ref_name }}
cache_tag_suffix: "AMD"

docker-gateway-api-private-arm:
name: ARM Gateway
needs:
Expand Down Expand Up @@ -228,7 +228,7 @@ jobs:
- docker-gateway-api-private
- docker-gateway-api-private-arm
uses: radixdlt/public-iac-resuable-artifacts/.github/workflows/merge-docker-images.yml@main
with:
with:
image_name: private-babylon-ng-gateway-api
image_tag: ${{ needs.setup-tags.outputs.gateway-api-tag }}
tag_suffix_1: amd64
Expand All @@ -244,23 +244,23 @@ jobs:
- docker-data-aggregator-private
- docker-data-aggregator-private-arm
uses: radixdlt/public-iac-resuable-artifacts/.github/workflows/merge-docker-images.yml@main
with:
with:
image_name: private-babylon-ng-data-aggregator
image_tag: ${{ needs.setup-tags.outputs.data-aggregator-tag }}
tag_suffix_1: amd64
tag_suffix_2: arm64
aws_dockerhub_secret: github-actions/common/dockerhub-credentials
secrets:
role-to-assume: ${{ secrets.GH_COMMON_SECRETS_READ_ROLE }}

join-migrations-images:
name: Migration
needs:
- setup-tags
- docker-database-migrations-private
- docker-database-migrations-private-arm
uses: radixdlt/public-iac-resuable-artifacts/.github/workflows/merge-docker-images.yml@main
with:
with:
image_name: private-babylon-ng-database-migrations
image_tag: ${{ needs.setup-tags.outputs.database-migrations-tag }}
tag_suffix_1: amd64
Expand Down Expand Up @@ -300,7 +300,7 @@ jobs:
echo "FULLNODE_VERSION=$FULLNODE_VERSION" >> $GITHUB_ENV
- name: Check if ci.env changed
id: changed-files
uses: tj-actions/changed-files@db5dd7c176cf59a19ef6561bf1936f059dee4b74
uses: RDXWorks-actions/changed-files@main
with:
files: |
deployment/ci.env
Expand Down Expand Up @@ -355,12 +355,12 @@ jobs:
echo "FULLNODE_VERSION=$FULLNODE_VERSION" >> $GITHUB_ENV
- name: Check if ci.env changed
id: changed-files
uses: tj-actions/changed-files@db5dd7c176cf59a19ef6561bf1936f059dee4b74
uses: RDXWorks-actions/changed-files@main
with:
files: |
deployment/ci.env
- name: Deploy and run benchmark on an ephemeral network
uses: toptal/jenkins-job-trigger-action@649c04c83c099c759aba134bf78138a303ec095f
uses: RDXWorks-actions/jenkins-job-trigger-action@master
with:
jenkins_url: "${{ env.JENKINS_URL }}"
jenkins_user: ${{ env.JENKINS_USER }}
Expand Down Expand Up @@ -454,7 +454,7 @@ jobs:
echo "FULLNODE_VERSION=$FULLNODE_VERSION" >> $GITHUB_ENV
echo "POSTGRES_VERSION=$POSTGRES_VERSION" >> $GITHUB_ENV
- name: Deploy and test on an ephemeral network
uses: toptal/jenkins-job-trigger-action@649c04c83c099c759aba134bf78138a303ec095f
uses: RDXWorks-actions/jenkins-job-trigger-action@master
with:
jenkins_url: "${{ env.JENKINS_URL }}"
jenkins_user: ${{ env.JENKINS_USER }}
Expand Down Expand Up @@ -488,7 +488,7 @@ jobs:
secret_name: "github-actions/common/sonar-token"
parse_json: true
- name: SonarScanner for .NET
uses: highbyte/sonarscan-dotnet@8410b6452e036aff2fb830831e508e723b8af60d
uses: highbyte/sonarscan-dotnet@8410b6452e036aff2fb830831e508e723b8af60d # for .NET 8 use RDXWorks-actions/sonarscan-dotnet@master
with:
sonarProjectKey: radixdlt_babylon-gateway
sonarProjectName: babylon-gateway
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/postman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: cancel running workflows
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5
uses: RDXWorks-actions/cancel-workflow-action@main
with:
access_token: ${{github.token}}
sync_collections:
Expand All @@ -41,7 +41,7 @@ jobs:
with:
fetch-depth: 0
- uses: ./.github/actions/fetch-secrets
with:
with:
role_name: "arn:aws:iam::308190735829:role/gh-babylon-gateway-secrets-read-access"
app_name: "babylon-gateway"
step_name: "sync_collections"
Expand All @@ -54,7 +54,7 @@ jobs:

# ========== Mapping the network name to postman-related variables ==========
- name: Map network name to its variables
uses: kanga333/variable-mapper@3681b75f5c6c00162721168fb91ab74925eaebcb
uses: RDXWorks-actions/variable-mapper@master
with:
key: "${{ github.event.inputs.network_name || 'gilganet' }}"
map: |
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:

# ========== Credentials ==========
- name: Setup Postman credentials
uses: DamianReeves/write-file-action@a432935930b2e351ec2d2792fc220717b656ec1c
uses: RDXWorks-actions/write-file-action@master
with:
path: .env
contents: POSTMAN_API_KEY=${{env.POSTMAN_API_TOKEN}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-typescript-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
- uses: ./.github/actions/fetch-secrets
with:
with:
role_name: "arn:aws:iam::308190735829:role/gh-babylon-gateway-secrets-read-access"
app_name: "babylon-gateway"
step_name: "publish-gateway-sdk-npmjs"
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
github_action_name: ${{ github.event.action}}

- name: Update package.json version
uses: jossef/action-set-json-field@2a0f7d953b580b828717daf4de7fafc7e4135e97
uses: RDXWorks-actions/action-set-json-field@master
with:
file: ./sdk/typescript/package.json
field: version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ jobs:
update_release_draft:
runs-on: ubuntu-22.04
steps:
- uses: release-drafter/release-drafter@6df64e4ba4842c203c604c1f45246c5863410adb
- uses: RDXWorks-actions/release-drafter@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 8 additions & 8 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
mv ./gateway-api.zip gateway-api-${{ github.event.release.tag_name }}-linux-x64.zip
mv ./database-migrations.zip database-migrations-${{ github.event.release.tag_name }}-linux-x64.zip
- name: Upload DataAggreagtor zip
uses: softprops/action-gh-release@c9b46fe7aad9f02afd89b12450b780f52dacfb2d
uses: RDXWorks-actions/action-gh-release@master
with:
files: |
data-aggregator-${{ github.event.release.tag_name }}-linux-x64.zip
Expand All @@ -47,7 +47,7 @@ jobs:
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
- name: Get rele ase
id: get_release
uses: bruceadams/get-release@f589ce0779c7bef1faf175f7488c972eb47dc046
uses: RDXWorks-actions/get-release@main
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Setup tags for docker image
Expand Down Expand Up @@ -214,7 +214,7 @@ jobs:
- docker-gateway-api-dockerhub
- docker-gateway-api-dockerhub-arm
uses: radixdlt/public-iac-resuable-artifacts/.github/workflows/merge-docker-images.yml@main
with:
with:
image_name: babylon-ng-gateway-api
image_tag: ${{ needs.setup-tags.outputs.version-suffix }}
tag_suffix_1: amd64
Expand All @@ -230,31 +230,31 @@ jobs:
- docker-data-aggregator-dockerhub
- docker-data-aggregator-dockerhub-arm
uses: radixdlt/public-iac-resuable-artifacts/.github/workflows/merge-docker-images.yml@main
with:
with:
image_name: babylon-ng-data-aggregator
image_tag: ${{ needs.setup-tags.outputs.version-suffix }}
tag_suffix_1: amd64
tag_suffix_2: arm64
aws_dockerhub_secret: github-actions/rdxworks/dockerhub-images/release-credentials
secrets:
role-to-assume: ${{ secrets.DOCKERHUB_RELEASER_ROLE }}

join-migrations-images:
name: Migration
needs:
- setup-tags
- docker-database-migrations-dockerhub
- docker-database-migrations-dockerhub-arm
uses: radixdlt/public-iac-resuable-artifacts/.github/workflows/merge-docker-images.yml@main
with:
with:
image_name: babylon-ng-database-migrations
image_tag: ${{ needs.setup-tags.outputs.version-suffix }}
tag_suffix_1: amd64
tag_suffix_2: arm64
aws_dockerhub_secret: github-actions/rdxworks/dockerhub-images/release-credentials
secrets:
role-to-assume: ${{ secrets.DOCKERHUB_RELEASER_ROLE }}

snyk-container-monitor:
name: Snyk monitor container
runs-on: ubuntu-latest
Expand Down Expand Up @@ -345,6 +345,6 @@ jobs:
args: --all-projects --org=${{ env.SNYK_NETWORK_ORG_ID }} --format=cyclonedx1.4+json --json-file-output sbom.json
command: sbom
- name: Upload SBOM
uses: softprops/action-gh-release@c9b46fe7aad9f02afd89b12450b780f52dacfb2d
uses: RDXWorks-actions/action-gh-release@master
with:
files: sbom.json

0 comments on commit 5046012

Please sign in to comment.