Skip to content

Commit c99581b

Browse files
committed
Test
1 parent f8372f8 commit c99581b

File tree

1 file changed

+51
-51
lines changed

1 file changed

+51
-51
lines changed

.github/actions/artifacts_build/action.yml

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,26 @@ runs:
3737
using: "composite"
3838
steps:
3939
- name: Action verification
40-
if: ${{ (inputs.load_image == false || inputs.load_image == 'false') && (inputs.push_image == false || inputs.push_image == 'false') }}
41-
shell: bash
42-
run: |
43-
echo "At least one of push_image or load_image must be true"
44-
exit 1
40+
# if: ${{ (inputs.load_image == false || inputs.load_image == 'false') && (inputs.push_image == false || inputs.push_image == 'false') }}
41+
# shell: bash
42+
# run: |
43+
# echo "At least one of push_image or load_image must be true"
44+
# exit 1
4545

46-
- name: Set up
47-
uses: ./.github/actions/set_up
48-
with:
49-
python_version: ${{ inputs.python_version }}
50-
package_name: ${{ inputs.package_name }}
51-
os: ${{ inputs.os }}
52-
run_unit_tests: true
46+
# - name: Set up
47+
# uses: ./.github/actions/set_up
48+
# with:
49+
# python_version: ${{ inputs.python_version }}
50+
# package_name: ${{ inputs.package_name }}
51+
# os: ${{ inputs.os }}
52+
# run_unit_tests: true
5353

54-
- name: Configure AWS Credentials
55-
if: ${{ inputs.push_image == true || inputs.push_image == 'true' }}
56-
uses: aws-actions/configure-aws-credentials@v4
57-
with:
58-
role-to-assume: ${{ inputs.snapshot-ecr-role }}
59-
aws-region: ${{ inputs.aws-region }}
54+
# - name: Configure AWS Credentials
55+
# if: ${{ inputs.push_image == true || inputs.push_image == 'true' }}
56+
# uses: aws-actions/configure-aws-credentials@v4
57+
# with:
58+
# role-to-assume: ${{ inputs.snapshot-ecr-role }}
59+
# aws-region: ${{ inputs.aws-region }}
6060

6161
- name: Install Dependencies and Build Wheel
6262
id: staging_wheel_build
@@ -67,41 +67,41 @@ runs:
6767
cd ./aws-opentelemetry-distro
6868
python -m build --outdir ../dist
6969
70-
- name: Set up QEMU
71-
uses: docker/setup-qemu-action@v3
70+
# - name: Set up QEMU
71+
# uses: docker/setup-qemu-action@v3
7272

73-
- name: Set up Docker Buildx
74-
uses: docker/setup-buildx-action@v3
73+
# - name: Set up Docker Buildx
74+
# uses: docker/setup-buildx-action@v3
7575

76-
- name: Login to private AWS ECR
77-
if: ${{ inputs.push_image == true || inputs.push_image == 'true' }}
78-
uses: docker/login-action@v3
79-
with:
80-
registry: ${{ inputs.image_registry }}
81-
env:
82-
AWS_REGION: ${{ inputs.aws-region }}
76+
# - name: Login to private AWS ECR
77+
# if: ${{ inputs.push_image == true || inputs.push_image == 'true' }}
78+
# uses: docker/login-action@v3
79+
# with:
80+
# registry: ${{ inputs.image_registry }}
81+
# env:
82+
# AWS_REGION: ${{ inputs.aws-region }}
8383

84-
# Per https://docs.aws.amazon.com/AmazonECR/latest/public/docker-pull-ecr-image.html, it is possible to
85-
# make unauthorized calls to get public ECR images (needed to build the ADOT Python docker image), but
86-
# it can fail if you previously authenticated to a public repo. Adding this step to log out, so we
87-
# ensure we can make unauthenticated call. This is important for making the pr_build workflow run on
88-
# PRs created from forked repos.
89-
- name: Logout of public AWS ECR
90-
shell: bash
91-
run: docker logout public.ecr.aws
84+
# # Per https://docs.aws.amazon.com/AmazonECR/latest/public/docker-pull-ecr-image.html, it is possible to
85+
# # make unauthorized calls to get public ECR images (needed to build the ADOT Python docker image), but
86+
# # it can fail if you previously authenticated to a public repo. Adding this step to log out, so we
87+
# # ensure we can make unauthenticated call. This is important for making the pr_build workflow run on
88+
# # PRs created from forked repos.
89+
# - name: Logout of public AWS ECR
90+
# shell: bash
91+
# run: docker logout public.ecr.aws
9292

93-
- name: Build and push image according to input
94-
uses: docker/build-push-action@v5
95-
with:
96-
push: ${{ inputs.push_image }}
97-
context: .
98-
file: ./Dockerfile
99-
platforms: linux/amd64
100-
tags: ${{ inputs.image_uri_with_tag }}
101-
load: ${{ inputs.load_image }}
93+
# - name: Build and push image according to input
94+
# uses: docker/build-push-action@v5
95+
# with:
96+
# push: ${{ inputs.push_image }}
97+
# context: .
98+
# file: ./Dockerfile
99+
# platforms: linux/amd64
100+
# tags: ${{ inputs.image_uri_with_tag }}
101+
# load: ${{ inputs.load_image }}
102102

103-
- name: Perform image scan
104-
uses: ./.github/actions/image_scan
105-
with:
106-
image-ref: ${{ inputs.image_uri_with_tag }}
107-
severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'
103+
# - name: Perform image scan
104+
# uses: ./.github/actions/image_scan
105+
# with:
106+
# image-ref: ${{ inputs.image_uri_with_tag }}
107+
# severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'

0 commit comments

Comments
 (0)