Skip to content

Commit 20e223e

Browse files
liustvewangzlei
andauthored
Rerun lambda layer release (#717)
*Description of changes:* By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. --------- Co-authored-by: Lei Wang <66336933+wangzlei@users.noreply.github.com>
1 parent 309e2c5 commit 20e223e

1 file changed

Lines changed: 84 additions & 84 deletions

File tree

.github/workflows/release-build.yml

Lines changed: 84 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -94,93 +94,93 @@ jobs:
9494
echo ${MATRIX}
9595
echo "aws_regions_json=${MATRIX}" >> $GITHUB_OUTPUT
9696
97-
publish-sdk:
98-
needs: download-artifacts
99-
runs-on: ubuntu-latest
100-
steps:
101-
- name: Checkout Repo @ SHA - ${{ github.sha }}
102-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
103-
104-
- name: Set up Docker Buildx
105-
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 #3.11.1
106-
107-
- name: Configure AWS credentials for private ECR
108-
uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 #v5.0.0
109-
with:
110-
role-to-assume: ${{ secrets.AWS_ROLE_ARN_ECR_RELEASE }}
111-
aws-region: ${{ env.AWS_PRIVATE_ECR_REGION }}
112-
113-
- name: Log in to AWS private ECR
114-
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 #v3.5.0
115-
with:
116-
registry: ${{ env.RELEASE_PRIVATE_REGISTRY }}
117-
118-
- name: Configure AWS credentials for public ECR
119-
uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 #v5.0.0
120-
with:
121-
role-to-assume: ${{ secrets.AWS_ROLE_ARN_ECR_RELEASE }}
122-
aws-region: ${{ env.AWS_PUBLIC_ECR_REGION }}
123-
124-
- name: Log in to AWS public ECR
125-
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 #v3.5.0
126-
with:
127-
registry: public.ecr.aws
128-
129-
- name: Download SDK wheel artifact
130-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 #v5.0.0
131-
with:
132-
name: ${{ env.WHEEL_ARTIFACT_NAME }}
133-
path: dist-pypi
134-
135-
- name: Download SDK source artifact
136-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 #v5.0.0
137-
with:
138-
name: ${{ env.SOURCE_ARTIFACT_NAME }}
139-
path: dist-pypi
140-
141-
# The step below publishes to testpypi in order to catch any issues
142-
- name: Publish to TestPyPI
143-
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e
144-
with:
145-
repository-url: https://test.pypi.org/legacy/
146-
attestations: false
147-
skip-existing: true
148-
verbose: true
149-
packages-dir: dist-pypi
150-
151-
# Publish to prod PyPI
152-
- name: Publish to PyPI
153-
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e
154-
with:
155-
skip-existing: true
156-
verbose: true
157-
packages-dir: dist-pypi
158-
159-
# Publish to public ECR
160-
- name: Build and push public ECR image
161-
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #v6.18.0
162-
with:
163-
push: true
164-
context: .
165-
file: ./Dockerfile
166-
platforms: linux/amd64,linux/arm64
167-
tags: |
168-
${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ env.VERSION }}
169-
170-
# Publish to private ECR
171-
- name: Build and push private ECR image
172-
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #v6.18.0
173-
with:
174-
push: true
175-
context: .
176-
file: ./Dockerfile
177-
platforms: linux/amd64,linux/arm64
178-
tags: |
179-
${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ env.VERSION }}
97+
# publish-sdk:
98+
# needs: download-artifacts
99+
# runs-on: ubuntu-latest
100+
# steps:
101+
# - name: Checkout Repo @ SHA - ${{ github.sha }}
102+
# uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
103+
#
104+
# - name: Set up Docker Buildx
105+
# uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 #3.11.1
106+
#
107+
# - name: Configure AWS credentials for private ECR
108+
# uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 #v5.0.0
109+
# with:
110+
# role-to-assume: ${{ secrets.AWS_ROLE_ARN_ECR_RELEASE }}
111+
# aws-region: ${{ env.AWS_PRIVATE_ECR_REGION }}
112+
#
113+
# - name: Log in to AWS private ECR
114+
# uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 #v3.5.0
115+
# with:
116+
# registry: ${{ env.RELEASE_PRIVATE_REGISTRY }}
117+
#
118+
# - name: Configure AWS credentials for public ECR
119+
# uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 #v5.0.0
120+
# with:
121+
# role-to-assume: ${{ secrets.AWS_ROLE_ARN_ECR_RELEASE }}
122+
# aws-region: ${{ env.AWS_PUBLIC_ECR_REGION }}
123+
#
124+
# - name: Log in to AWS public ECR
125+
# uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 #v3.5.0
126+
# with:
127+
# registry: public.ecr.aws
128+
#
129+
# - name: Download SDK wheel artifact
130+
# uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 #v5.0.0
131+
# with:
132+
# name: ${{ env.WHEEL_ARTIFACT_NAME }}
133+
# path: dist-pypi
134+
#
135+
# - name: Download SDK source artifact
136+
# uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 #v5.0.0
137+
# with:
138+
# name: ${{ env.SOURCE_ARTIFACT_NAME }}
139+
# path: dist-pypi
140+
#
141+
# # The step below publishes to testpypi in order to catch any issues
142+
# - name: Publish to TestPyPI
143+
# uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e
144+
# with:
145+
# repository-url: https://test.pypi.org/legacy/
146+
# attestations: false
147+
# skip-existing: true
148+
# verbose: true
149+
# packages-dir: dist-pypi
150+
#
151+
# # Publish to prod PyPI
152+
# - name: Publish to PyPI
153+
# uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e
154+
# with:
155+
# skip-existing: true
156+
# verbose: true
157+
# packages-dir: dist-pypi
158+
#
159+
# # Publish to public ECR
160+
# - name: Build and push public ECR image
161+
# uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #v6.18.0
162+
# with:
163+
# push: true
164+
# context: .
165+
# file: ./Dockerfile
166+
# platforms: linux/amd64,linux/arm64
167+
# tags: |
168+
# ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ env.VERSION }}
169+
#
170+
# # Publish to private ECR
171+
# - name: Build and push private ECR image
172+
# uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #v6.18.0
173+
# with:
174+
# push: true
175+
# context: .
176+
# file: ./Dockerfile
177+
# platforms: linux/amd64,linux/arm64
178+
# tags: |
179+
# ${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ env.VERSION }}
180180

181181
publish-layer-prod:
182182
runs-on: ubuntu-latest
183-
needs: [download-artifacts, publish-sdk]
183+
needs: [download-artifacts]
184184
strategy:
185185
matrix:
186186
aws_region: ${{ fromJson(needs.download-artifacts.outputs.aws_regions_json) }}

0 commit comments

Comments
 (0)