Skip to content

Commit

Permalink
Add build image workflow for v3.21-arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-venturini committed Jan 13, 2024
1 parent 3f514b4 commit 373bf89
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/ecr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build & publish docker image to AWS ECR

on:
push:

jobs:
build:
runs-on: ubuntu-latest

# ref https://github.com/aws-actions/configure-aws-credentials?tab=readme-ov-file#oidc
permissions:
id-token: write
contents: read

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

- name: Configure AWS Credentials Action for GitHub Actions
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::368150090629:role/github-oidc-idp-Role-XfF2zEuT6K8z
aws-region: eu-west-1

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

- name: Build, tag, and push docker image to Amazon ECR
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: linux/arm64
tags: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com/${{ github.event.repository.name }}:${{ github.tag }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM darthsim/imgproxy:v3.21.0-arm64
FROM darthsim/imgproxy:v3.21-arm64
COPY --from=public.ecr.aws/awsguru/aws-lambda-adapter:0.7.2 /lambda-adapter /opt/extensions/lambda-adapter
ENV PORT=8080
ENV AWS_LWA_READINESS_CHECK_PATH=/health

0 comments on commit 373bf89

Please sign in to comment.