Skip to content

Commit

Permalink
fix: cleanup s3 sync action
Browse files Browse the repository at this point in the history
- audience cleanup amazonaws.com
  • Loading branch information
jac18281828 committed Oct 23, 2024
1 parent 9dcccba commit dff58b1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 17 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/build-containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@ on:
branches:
- main
- helm

jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
flavor: [standard, cuda]

permissions:
contents: read
packages: write

steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
Expand All @@ -24,21 +21,17 @@ jobs:
docker-images: false
- name: Checkout Code
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Version from Cargo.toml
run: echo "VERSION=${{ github.head_ref || github.ref_name }}-$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[] | select(.name == "bonsol-node") | .version')" >> $GITHUB_ENV
working-directory: ./node

- name: Build and Push Docker Image
uses: docker/build-push-action@v3
with:
Expand All @@ -48,6 +41,6 @@ jobs:
tags: |
ghcr.io/${{ github.repository_owner }}/bonsol-node:${{ matrix.flavor }}-${{ env.VERSION }}
ghcr.io/${{ github.repository_owner }}/bonsol-node:${{ matrix.flavor }}-${{ github.sha }}
platforms: linux/amd64
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
4 changes: 0 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ on:
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions: read-all

jobs:
nix-flake-check:
name: Nix Flake Check
Expand All @@ -26,7 +24,6 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- run: nix flake check --all-systems -L

nix-devShell-check:
name: Nix devShell Check
runs-on: ubuntu-latest
Expand All @@ -42,7 +39,6 @@ jobs:
extra-trusted-public-keys = bonsol.cachix.org-1:yz7vi1rCPW1BpqoszdJvf08HZxQ/5gPTPxft4NnT74A=
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix develop

nix-fmt-check:
name: Nix Format Check
runs-on: ubuntu-latest
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/s3-prover-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ env:
AWS_REGION: "us-east-1"
PROVER_TAG: "v2024-05-17.1"
concurrency:
group: "sync-prover-to-s3-${{ env.PROVER_TAG }}"
group: "sync-prover-to-s3"
cancel-in-progress: true
permissions:
id-token: write
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -21,7 +24,7 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
audience: sts.amazonaws.com.cn
audience: sts.amazonaws.com
aws-region: us-east-1
role-to-assume: arn:aws:iam::041119533185:role/GithubBonsolCI
- name: Build Prover Artifact
Expand Down
7 changes: 4 additions & 3 deletions node/src/ingest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ mod rpc;
use anyhow::Result;
pub use {dragon::GrpcIngester, rpc::RpcIngester};

use crate::types::BonsolInstruction;
use solana_sdk::pubkey::Pubkey;
use tokio::sync::mpsc::UnboundedReceiver;
use {
crate::types::BonsolInstruction, solana_sdk::pubkey::Pubkey,
tokio::sync::mpsc::UnboundedReceiver,
};

pub type TxChannel = UnboundedReceiver<Vec<BonsolInstruction>>;

Expand Down

0 comments on commit dff58b1

Please sign in to comment.