From e37e5186eaf5b8701c1ea23c2755f1c32c96322c Mon Sep 17 00:00:00 2001 From: harryryu Date: Wed, 10 Jul 2024 00:57:35 -0700 Subject: [PATCH] Test --- .../application-signals-e2e-test.yml | 7 +- .github/workflows/test-2.yml | 94 +++++++++---------- 2 files changed, 51 insertions(+), 50 deletions(-) diff --git a/.github/workflows/application-signals-e2e-test.yml b/.github/workflows/application-signals-e2e-test.yml index ed809b8d..96847abb 100644 --- a/.github/workflows/application-signals-e2e-test.yml +++ b/.github/workflows/application-signals-e2e-test.yml @@ -7,9 +7,10 @@ name: E2E Testing on: workflow_call: - tag: - required: true - type: string + inputs: + tag: + required: true + type: string permissions: id-token: write diff --git a/.github/workflows/test-2.yml b/.github/workflows/test-2.yml index 69d4f844..7b51ad1e 100644 --- a/.github/workflows/test-2.yml +++ b/.github/workflows/test-2.yml @@ -12,60 +12,60 @@ env: ECR_OPERATOR_RELEASE_IMAGE: ${{ secrets.ECR_OPERATOR_RELEASE_IMAGE }} jobs: - MakeBinary: - name: 'MakeContainerImage' - runs-on: ubuntu-latest - permissions: - id-token: write - contents: read - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Set up Go 1.x - uses: actions/setup-go@v4 - with: - go-version: ~1.19.6 - cache: false - - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v2 - with: - role-to-assume: ${{ env.AWS_ASSUME_ROLE }} - aws-region: us-west-2 - - - name: Login to ECR - if: steps.cached_binaries.outputs.cache-hit == false - id: login-ecr - uses: aws-actions/amazon-ecr-login@v1 - - - name: Set up Docker Buildx - if: steps.cached_binaries.outputs.cache-hit == false - uses: docker/setup-buildx-action@v1 - - - name: Set up QEMU - if: steps.cached_binaries.outputs.cache-hit == false - uses: docker/setup-qemu-action@v1 - - - name: Build Cloudwatch Agent Operator Image and push to ECR - uses: docker/build-push-action@v4 - if: steps.cached_binaries.outputs.cache-hit == false - with: - file: ./Dockerfile - context: . - push: true - tags: ${{ env.ECR_OPERATOR_STAGING_REPO }}:staging - platforms: linux/amd64, linux/arm64 +# MakeBinary: +# name: 'MakeContainerImage' +# runs-on: ubuntu-latest +# permissions: +# id-token: write +# contents: read +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 0 +# +# - name: Set up Go 1.x +# uses: actions/setup-go@v4 +# with: +# go-version: ~1.19.6 +# cache: false +# +# - name: Configure AWS Credentials +# uses: aws-actions/configure-aws-credentials@v2 +# with: +# role-to-assume: ${{ env.AWS_ASSUME_ROLE }} +# aws-region: us-west-2 +# +# - name: Login to ECR +# if: steps.cached_binaries.outputs.cache-hit == false +# id: login-ecr +# uses: aws-actions/amazon-ecr-login@v1 +# +# - name: Set up Docker Buildx +# if: steps.cached_binaries.outputs.cache-hit == false +# uses: docker/setup-buildx-action@v1 +# +# - name: Set up QEMU +# if: steps.cached_binaries.outputs.cache-hit == false +# uses: docker/setup-qemu-action@v1 +# +# - name: Build Cloudwatch Agent Operator Image and push to ECR +# uses: docker/build-push-action@v4 +# if: steps.cached_binaries.outputs.cache-hit == false +# with: +# file: ./Dockerfile +# context: . +# push: true +# tags: ${{ env.ECR_OPERATOR_STAGING_REPO }}:staging +# platforms: linux/amd64, linux/arm64 ApplicationSignalsEndToEndTest: name: "Application Signals E2E Test" - needs: MakeBinary +# needs: MakeBinary uses: ./.github/workflows/application-signals-e2e-test.yml secrets: inherit permissions: id-token: write contents: read with: - tag: staging + tag: 'staging'