@@ -37,88 +37,88 @@ jobs:
3737 package_name : aws-opentelemetry-distro
3838 os : ubuntu-latest
3939
40- # TODO: Add some sort of smoke/integration testing before we go
41- # release the artifacts. adot java for reference:
42- # https://github.com/aws-observability/aws-otel-java-instrumentation/tree/93870a550ac30988fbdd5d3bf1e8f9f1b37916f5/smoke-tests
43-
44- - name : Configure AWS credentials for PyPI secrets
45- uses : aws-actions/configure-aws-credentials@v4
46- with :
47- role-to-assume : ${{ secrets.AWS_ROLE_ARN_SECRETS_MANAGER }}
48- aws-region : ${{ env.AWS_DEFAULT_REGION }}
40+ # # TODO: Add some sort of smoke/integration testing before we go
41+ # # release the artifacts. adot java for reference:
42+ # # https://github.com/aws-observability/aws-otel-java-instrumentation/tree/93870a550ac30988fbdd5d3bf1e8f9f1b37916f5/smoke-tests
43+
44+ # - name: Configure AWS credentials for PyPI secrets
45+ # uses: aws-actions/configure-aws-credentials@v4
46+ # with:
47+ # role-to-assume: ${{ secrets.AWS_ROLE_ARN_SECRETS_MANAGER }}
48+ # aws-region: ${{ env.AWS_DEFAULT_REGION }}
4949
50- - name : Get PyPI secrets
51- uses : aws-actions/aws-secretsmanager-get-secrets@v1
52- id : pypi_secrets
53- with :
54- secret-ids : |
55- PROD_PYPI_TOKEN,${{ secrets.PYPI_PROD_TOKEN_SECRET_ARN }}
56- TEST_PYPI_TOKEN,${{ secrets.PYPI_TEST_TOKEN_SECRET_ARN }}
57- parse-json-secrets : true
58-
59- - name : Configure AWS credentials for private ECR
60- uses : aws-actions/configure-aws-credentials@v4
61- with :
62- role-to-assume : ${{ secrets.AWS_ROLE_ARN_ECR_RELEASE }}
63- aws-region : ${{ env.AWS_PRIVATE_ECR_REGION }}
64-
65- - name : Log in to AWS private ECR
66- uses : docker/login-action@v3
67- with :
68- registry : ${{ env.RELEASE_PRIVATE_REGISTRY }}
69-
70- - name : Configure AWS credentials for public ECR
71- uses : aws-actions/configure-aws-credentials@v4
72- with :
73- role-to-assume : ${{ secrets.AWS_ROLE_ARN_ECR_RELEASE }}
74- aws-region : ${{ env.AWS_PUBLIC_ECR_REGION }}
75-
76- - name : Log in to AWS public ECR
77- uses : docker/login-action@v3
78- with :
79- registry : public.ecr.aws
80-
81- # The step below publishes to testpypi in order to catch any issues
82- # with the package configuration that would cause a failure to upload to pypi.
83- - name : Install twine
84- run : pip install twine
50+ # - name: Get PyPI secrets
51+ # uses: aws-actions/aws-secretsmanager-get-secrets@v1
52+ # id: pypi_secrets
53+ # with:
54+ # secret-ids: |
55+ # PROD_PYPI_TOKEN,${{ secrets.PYPI_PROD_TOKEN_SECRET_ARN }}
56+ # TEST_PYPI_TOKEN,${{ secrets.PYPI_TEST_TOKEN_SECRET_ARN }}
57+ # parse-json-secrets: true
58+
59+ # - name: Configure AWS credentials for private ECR
60+ # uses: aws-actions/configure-aws-credentials@v4
61+ # with:
62+ # role-to-assume: ${{ secrets.AWS_ROLE_ARN_ECR_RELEASE }}
63+ # aws-region: ${{ env.AWS_PRIVATE_ECR_REGION }}
64+
65+ # - name: Log in to AWS private ECR
66+ # uses: docker/login-action@v3
67+ # with:
68+ # registry: ${{ env.RELEASE_PRIVATE_REGISTRY }}
69+
70+ # - name: Configure AWS credentials for public ECR
71+ # uses: aws-actions/configure-aws-credentials@v4
72+ # with:
73+ # role-to-assume: ${{ secrets.AWS_ROLE_ARN_ECR_RELEASE }}
74+ # aws-region: ${{ env.AWS_PUBLIC_ECR_REGION }}
75+
76+ # - name: Log in to AWS public ECR
77+ # uses: docker/login-action@v3
78+ # with:
79+ # registry: public.ecr.aws
80+
81+ # # The step below publishes to testpypi in order to catch any issues
82+ # # with the package configuration that would cause a failure to upload to pypi.
83+ # - name: Install twine
84+ # run: pip install twine
8585
86- - name : Publish to TestPyPI
87- env :
88- TWINE_USERNAME : ' __token__'
89- TWINE_PASSWORD : ${{ env.TEST_PYPI_TOKEN_API_TOKEN }}
90- run : |
91- twine upload --repository testpypi --skip-existing --verbose dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl
92-
93- # Publish to prod PyPI
94- - name : Publish to PyPI
95- env :
96- TWINE_USERNAME : ' __token__'
97- TWINE_PASSWORD : ${{ env.PROD_PYPI_TOKEN_API_TOKEN }}
98- run : |
99- twine upload --skip-existing --verbose dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl
100-
101- # Publish to public ECR
102- - name : Build and push public ECR image
103- uses : docker/build-push-action@v5
104- with :
105- push : true
106- context : .
107- file : ./Dockerfile
108- platforms : linux/amd64,linux/arm64
109- tags : |
110- ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}
111-
112- # Publish to private ECR
113- - name : Build and push private ECR image
114- uses : docker/build-push-action@v5
115- with :
116- push : true
117- context : .
118- file : ./Dockerfile
119- platforms : linux/amd64,linux/arm64
120- tags : |
121- ${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ github.event.inputs.version }}
86+ # - name: Publish to TestPyPI
87+ # env:
88+ # TWINE_USERNAME: '__token__'
89+ # TWINE_PASSWORD: ${{ env.TEST_PYPI_TOKEN_API_TOKEN }}
90+ # run: |
91+ # twine upload --repository testpypi --skip-existing --verbose dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl
92+
93+ # # Publish to prod PyPI
94+ # - name: Publish to PyPI
95+ # env:
96+ # TWINE_USERNAME: '__token__'
97+ # TWINE_PASSWORD: ${{ env.PROD_PYPI_TOKEN_API_TOKEN }}
98+ # run: |
99+ # twine upload --skip-existing --verbose dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl
100+
101+ # # Publish to public ECR
102+ # - name: Build and push public ECR image
103+ # uses: docker/build-push-action@v5
104+ # with:
105+ # push: true
106+ # context: .
107+ # file: ./Dockerfile
108+ # platforms: linux/amd64,linux/arm64
109+ # tags: |
110+ # ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}
111+
112+ # # Publish to private ECR
113+ # - name: Build and push private ECR image
114+ # uses: docker/build-push-action@v5
115+ # with:
116+ # push: true
117+ # context: .
118+ # file: ./Dockerfile
119+ # platforms: linux/amd64,linux/arm64
120+ # tags: |
121+ # ${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ github.event.inputs.version }}
122122
123123 # Publish to GitHub releases
124124 - name : Create GH release
@@ -132,26 +132,26 @@ jobs:
132132 "v${{ github.event.inputs.version }}" \
133133 dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl
134134
135- - name : Get SHA256 checksum of wheel file
136- id : get_sha256
137- env :
138- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
139- run : |
140- checksum=$(shasum -a 256 dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl | awk '{ print $1 }')
141- echo "CHECKSUM=$checksum" >> $GITHUB_OUTPUT
142-
143- - name : Append checksum and update version
144- env :
145- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
146- run : |
147- echo "aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl ${{ steps.get_sha256.outputs.CHECKSUM }}" >> checksum.txt
148- echo "${{ github.event.inputs.version }}" > version.txt
149-
150- git config --local user.email "github-actions[bot]@users.noreply.github.com"
151- git config --local user.name "GitHub Action Release Workflow"
152- git add checksum.txt version.txt
153- git commit -m "Update latest version and append checksum"
154- git push
135+ # - name: Get SHA256 checksum of wheel file
136+ # id: get_sha256
137+ # env:
138+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
139+ # run: |
140+ # checksum=$(shasum -a 256 dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl | awk '{ print $1 }')
141+ # echo "CHECKSUM=$checksum" >> $GITHUB_OUTPUT
142+
143+ # - name: Append checksum and update version
144+ # env:
145+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
146+ # run: |
147+ # echo "aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl ${{ steps.get_sha256.outputs.CHECKSUM }}" >> checksum.txt
148+ # echo "${{ github.event.inputs.version }}" > version.txt
149+
150+ # git config --local user.email "github-actions[bot]@users.noreply.github.com"
151+ # git config --local user.name "GitHub Action Release Workflow"
152+ # git add checksum.txt version.txt
153+ # git commit -m "Update latest version and append checksum"
154+ # git push
155155
156156
157157
0 commit comments