From a711b51b15f0c1bec3d6ed676d538219cd74a120 Mon Sep 17 00:00:00 2001 From: Ping Xiang Date: Wed, 11 Sep 2024 14:20:03 -0700 Subject: [PATCH] update release --- .github/actions/artifacts_build/action.yml | 56 +++++++++++----------- .github/actions/set_up/action.yml | 1 + 2 files changed, 29 insertions(+), 28 deletions(-) diff --git a/.github/actions/artifacts_build/action.yml b/.github/actions/artifacts_build/action.yml index 074e165..05324f5 100644 --- a/.github/actions/artifacts_build/action.yml +++ b/.github/actions/artifacts_build/action.yml @@ -66,41 +66,41 @@ runs: cd aws-distro-opentelemetry-node-autoinstrumentation npm pack - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 + # - name: Set up QEMU + # uses: docker/setup-qemu-action@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + # - name: Set up Docker Buildx + # uses: docker/setup-buildx-action@v3 - - name: Login to private AWS ECR - if: ${{ inputs.push_image == true || inputs.push_image == 'true' }} - uses: docker/login-action@v3 - with: - registry: ${{ inputs.image_registry }} - env: - AWS_REGION: ${{ inputs.aws-region }} + # - name: Login to private AWS ECR + # if: ${{ inputs.push_image == true || inputs.push_image == 'true' }} + # uses: docker/login-action@v3 + # with: + # registry: ${{ inputs.image_registry }} + # env: + # AWS_REGION: ${{ inputs.aws-region }} # Per https://docs.aws.amazon.com/AmazonECR/latest/public/docker-pull-ecr-image.html, it is possible to # make unauthorized calls to get public ECR images (needed to build the ADOT Node docker image), but # it can fail if you previously authenticated to a public repo. Adding this step to log out, so we # ensure we can make unauthenticated call. This is important for making the pr_build workflow run on # PRs created from forked repos. - - name: Logout of public AWS ECR - shell: bash - run: docker logout public.ecr.aws + # - name: Logout of public AWS ECR + # shell: bash + # run: docker logout public.ecr.aws - - name: Build and push image according to input - uses: docker/build-push-action@v5 - with: - push: ${{ inputs.push_image }} - context: . - file: ./Dockerfile - platforms: linux/amd64 - tags: ${{ inputs.image_uri_with_tag }} - load: ${{ inputs.load_image }} + # - name: Build and push image according to input + # uses: docker/build-push-action@v5 + # with: + # push: ${{ inputs.push_image }} + # context: . + # file: ./Dockerfile + # platforms: linux/amd64 + # tags: ${{ inputs.image_uri_with_tag }} + # load: ${{ inputs.load_image }} - - name: Perform image scan - uses: ./.github/actions/image_scan - with: - image-ref: ${{ inputs.image_uri_with_tag }} - severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN' \ No newline at end of file + # - name: Perform image scan + # uses: ./.github/actions/image_scan + # with: + # image-ref: ${{ inputs.image_uri_with_tag }} + # severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN' \ No newline at end of file diff --git a/.github/actions/set_up/action.yml b/.github/actions/set_up/action.yml index 337c9ff..181fb99 100644 --- a/.github/actions/set_up/action.yml +++ b/.github/actions/set_up/action.yml @@ -23,6 +23,7 @@ runs: uses: actions/setup-node@v4 with: node-version: ${{ inputs.node_version }} + registry-url: 'https://registry.npmjs.org' - name: Install dependencies and compile to build directory shell: bash