Skip to content

Commit

Permalink
Follow-up #11987: Adjust AWS credentials (#11992)
Browse files Browse the repository at this point in the history
The build bucket was moved to N1 org and we need to adjust credentials.
Switching to OIDC for mac release workflow.
Removing N1 temporary build buckets
  • Loading branch information
andrei-near authored Aug 23, 2024
1 parent 919283e commit d535f2b
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 277 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/mac_m1_binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,19 @@ jobs:
runs-on: macos-latest-xlarge

steps:
- uses: actions/checkout@master
- uses: isbang/setup-awscli@v0.1.0
- run: scripts/mac-release.sh
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- run: scripts/mac-release.sh nightly-release
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::590184106962:role/GitHubActionsRunner
aws-region: us-west-1
- name: Checkout repository for master branch
# In case of master branch we want to checkout with depth 1
if: ${{ github.event_name != 'workflow_dispatch' && github.event_name != 'release'}}
uses: actions/checkout@v4

- name: Neard binary build and upload to S3
run: ./scripts/mac-release.sh

- name: Neard binary build and upload to S3
run: ./scripts/mac-release.sh nightly-release

2 changes: 1 addition & 1 deletion .github/workflows/neard_assertion_binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::754641474505:role/GitHubActionsRunner
role-to-assume: arn:aws:iam::590184106962:role/GitHubActionsRunner
aws-region: us-west-1

- name: Checkout ${{ github.event.inputs.branch }} branch
Expand Down
47 changes: 0 additions & 47 deletions .github/workflows/neard_assertion_binary_n1.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/neard_nightly_binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
ref: ${{ github.event.inputs.branch }}

- name: Neard binary build and upload to S3
run: ./scripts/binary_release_n1.sh nightly-release
run: ./scripts/binary_release.sh nightly-release

- name: Update latest version metadata in S3
run: |
echo $(git rev-parse HEAD) > latest
BRANCH=$(git branch --show-current)
aws s3 cp --acl public-read latest s3://n1.build.nearprotocol.com/nearcore/$(uname)/${BRANCH}/latest-nightly
aws s3 cp --acl public-read latest s3://build.nearprotocol.com/nearcore/$(uname)/${BRANCH}/latest-nightly
2 changes: 1 addition & 1 deletion .github/workflows/neard_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::754641474505:role/GitHubActionsRunner
role-to-assume: arn:aws:iam::590184106962:role/GitHubActionsRunner
aws-region: us-west-1

- name: Checkout ${{ github.event.inputs.branch }} branch
Expand Down
63 changes: 0 additions & 63 deletions .github/workflows/neard_release_n1.yml

This file was deleted.

79 changes: 0 additions & 79 deletions scripts/binary_release_n1.sh

This file was deleted.

74 changes: 0 additions & 74 deletions scripts/mac-release-n1.sh

This file was deleted.

0 comments on commit d535f2b

Please sign in to comment.