Skip to content

Commit

Permalink
tweak ecr thing plus add mac arm forwarder
Browse files Browse the repository at this point in the history
  • Loading branch information
asg0451 committed Apr 15, 2024
1 parent 950c718 commit cd634aa
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,22 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: target/x86_64-apple-darwin/release/forwarder-macos-x86
# TODO: mac arm - aarch64-apple-darwin

build-forwarder-binaries-mac-arm:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- run: rustup toolchain install stable --profile minimal --target aarch64-apple-darwin
- uses: Swatinem/rust-cache@v2
with:
key: "release-forwarder-bin-macos"
- name: Build forwarder release
run: cargo build --release --target aarch64-apple-darwin --bin forwarder
- run: mv target/aarch64-apple-darwin/release/forwarder target/aarch64-apple-darwin/release/forwarder-macos-arm
- name: Upload file
uses: softprops/action-gh-release@v1
with:
files: target/aarch64-apple-darwin/release/forwarder-macos-arm

build-receiver-image:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -101,10 +116,6 @@ jobs:
aws-region: us-east-1
- name: log in to ecr
uses: aws-actions/amazon-ecr-login@v1
with:
registry: 413471642455.dkr.ecr.us-east-1.amazonaws.com
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

# also do github packages
- name: Log in to the Github Packages Container registry
Expand Down

0 comments on commit cd634aa

Please sign in to comment.