Skip to content

Commit 42134a5

Browse files
committed
Switch Image Storage to ECR
1 parent 0597099 commit 42134a5

File tree

3 files changed

+25
-24
lines changed

3 files changed

+25
-24
lines changed

.github/workflows/appsignals-e2e-ec2-test.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ jobs:
3838
e2e-ec2-test:
3939
runs-on: ubuntu-latest
4040
container:
41-
image: ghcr.io/aws-observability/aws-application-signals-test-framework
42-
credentials:
43-
username: ${{ github.actor }}
44-
password: ${{ secrets.PAT_PACKAGE_READ_ACCESS_TOKEN }}
41+
image: public.ecr.aws/h6o3z5z9/aws-application-signals-test-framework-workflow-container:latest
4542
steps:
4643
- uses: actions/checkout@v4
4744
with:

.github/workflows/appsignals-e2e-eks-test.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ jobs:
4141
e2e-eks-test:
4242
runs-on: ubuntu-latest
4343
container:
44-
image: ghcr.io/aws-observability/aws-application-signals-test-framework
45-
credentials:
46-
username: ${{ github.actor }}
47-
password: ${{ secrets.PAT_PACKAGE_READ_ACCESS_TOKEN }}
48-
44+
image: public.ecr.aws/h6o3z5z9/aws-application-signals-test-framework-workflow-container:latest
4945
steps:
5046
- uses: actions/checkout@v4
5147
with:

.github/workflows/e2e-test-docker-image-build.yml

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,37 @@ name: Create and publish a Docker image
22

33
on:
44
workflow_dispatch:
5-
env:
6-
REGISTRY: ghcr.io
7-
IMAGE_NAME: ${{ github.repository }}
5+
6+
permissions:
7+
id-token: write
8+
contents: read
89

910
jobs:
1011
build-and-push-image:
1112
runs-on: ubuntu-latest
12-
permissions:
13-
contents: read
14-
packages: write
1513
steps:
1614
- name: Checkout repository
1715
uses: actions/checkout@v4
1816

19-
- name: Log in to the Container registry
20-
uses: docker/login-action@v3
17+
- name: Configure AWS Credentials
18+
uses: aws-actions/configure-aws-credentials@v4
2119
with:
22-
registry: ${{ env.REGISTRY }}
23-
username: ${{ github.actor }}
24-
password: ${{ secrets.GITHUB_TOKEN }}
20+
role-to-assume: ${{ secrets.E2E_SECRET_TEST_ROLE_ARN }}
21+
aws-region: us-east-1
2522

26-
- name: Build and push Docker image
27-
uses: docker/build-push-action@v5
23+
- name: Login to Amazon ECR
24+
id: login-ecr-public
25+
uses: aws-actions/amazon-ecr-login@v2
2826
with:
29-
push: true
30-
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
27+
registry-type: public
28+
29+
- name: Build, tag, and push image to Amazon ECR
30+
id: build-image
31+
env:
32+
REGISTRY: ${{ steps.login-ecr-public.outputs.registry }}
33+
REGISTRY_ALIAS: h6o3z5z9
34+
REPOSITORY: aws-application-signals-test-framework-workflow-container
35+
IMAGE_TAG: latest
36+
run: |
37+
docker build -t $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG .
38+
docker push $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG

0 commit comments

Comments
 (0)