Skip to content

Commit

Permalink
test 2x docker push
Browse files Browse the repository at this point in the history
  • Loading branch information
jj22ee committed Dec 3, 2024
1 parent 59fb08b commit 9f4b3e5
Showing 1 changed file with 31 additions and 11 deletions.
42 changes: 31 additions & 11 deletions .github/workflows/release-ocb-components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,41 @@ jobs:
cache-from: type=gha,scope=build-${{ github.ref_name }}-ocb
cache-to: type=gha,scope=build-${{ github.ref_name }}-ocb

ocb-e2e-test:
secrets: inherit
needs: [ setup-test-for-prepare-release ]
uses: jj22ee/aws-application-signals-test-framework/.github/workflows/java-eks-otlp-ocb-test.yml@otlp-ocb-main-build
with:
aws-region: us-east-1
test-cluster-name: 'e2e-otel-collector-contrib-release-test'
caller-workflow-name: 'main-build-java-e2e-eks-otlp-ocb-canary-test'
java-version: '11'
e2e-otel-collector-image-tag: ${{ github.sha }}
# ocb-e2e-test:
# secrets: inherit
# needs: [ setup-test-for-prepare-release ]
# uses: jj22ee/aws-application-signals-test-framework/.github/workflows/java-eks-otlp-ocb-test.yml@otlp-ocb-main-build
# with:
# aws-region: us-east-1
# test-cluster-name: 'e2e-otel-collector-contrib-release-test'
# caller-workflow-name: 'main-build-java-e2e-eks-otlp-ocb-canary-test'
# java-version: '11'
# e2e-otel-collector-image-tag: ${{ github.sha }}

prepare-release:
runs-on: ubuntu-latest
needs: [ ocb-e2e-test ]
needs: [ setup-test-for-prepare-release ]
steps:
- uses: actions/checkout@v4
with:
ref: aws-ocb-dev-workflows

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.RELEASE_TEST_ACCOUNT_ID }}:role/${{ secrets.RELEASE_TEST_ACCOUNT_ROLE }}
aws-region: us-east-1

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

- name: Login to private AWS ECR
uses: docker/login-action@v3
with:
registry: ${{ secrets.RELEASE_TEST_ACCOUNT_ID }}.dkr.ecr.us-east-1.amazonaws.com
env:
AWS_REGION: us-east-1

- name: Build and push image with latest tag
uses: docker/build-push-action@v5
with:
Expand Down

0 comments on commit 9f4b3e5

Please sign in to comment.