Skip to content

Commit

Permalink
add pushing to aws
Browse files Browse the repository at this point in the history
  • Loading branch information
spikelu2016 committed Jan 2, 2025
1 parent 6215788 commit 2a8a1df
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,34 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta-datadog.outputs.tags }}

aws:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.21.x
check-latest: true

- name: Check Out Repo
uses: actions/checkout@v3

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

- name: Build and push
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: bricksllm
tags: latest
dockerfile: Dockerfile.aws.datadog
registry: ${{ steps.login-ecr.outputs.registry }}

0 comments on commit 2a8a1df

Please sign in to comment.