Skip to content

Commit

Permalink
chore: fix docker caching job
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Nov 6, 2024
1 parent 9b093df commit 39eb45c
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,30 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Prebuild Docker dependencies
uses: ./.github/workflows/tests-build-image.yml
- name: Configure AWS credentials and bucket region
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Login to ECR
run: aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com
shell: bash

- name: Build and push by SHA
uses: ./.github/actions/docker
with:
name: Dependencies
image_name: deps
image_org: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com
target: deps
platform: linux/arm64
push_tags: true
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
region: ${{ secrets.AWS_REGION }}
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

build-js:
name: Build JS packages
Expand Down

0 comments on commit 39eb45c

Please sign in to comment.