Skip to content

Commit

Permalink
Try build images
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson committed Mar 6, 2025
1 parent b606a72 commit 20f8d4f
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/arch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ name: Arch Test
on:
workflow_dispatch:

permissions: {}
permissions:
contents: write
pull-requests: write
id-token: write

jobs:
docker:
Expand All @@ -20,16 +23,23 @@ jobs:
- uses: actions/checkout@v4
- name: "Setup Env"
uses: ./.github/actions/setup-env
- name: Compose up
shell: devenv shell bash -- -e {0}
run: |
yarn nx compose:up ui
sleep 60
- name: "Get AWS credentials"
if: ${{ steps.release.outputs.release_created }}
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: us-east-1
role-session-name: GithubActionsSession

- name: "Login to Amazon ECR Public"
id: login-ecr-public
if: ${{ steps.release.outputs.release_created }}
uses: aws-actions/amazon-ecr-login@v2
with:
registry-type: public
- name: Test
shell: devenv shell bash -- -e {0}
env:
TARGET_ARCH: ${{ matrix.arch }}
run: |
CYPRESS_BASE_URL='http://localhost:8888' yarn nx execute e2e
- name: Compose down
shell: devenv shell bash -- -e {0}
run: |
yarn nx compose:down ui
yarn nx container catalog --configuration publish --tags ${AWS_ECR_REPOSITORY}/retail-store-sample-{projectName}:arch1-${TARGET_ARCH}

0 comments on commit 20f8d4f

Please sign in to comment.