Skip to content

Commit 4ceb57a

Browse files
committed
comment out publishing jobs for test run
1 parent 2e776e3 commit 4ceb57a

File tree

1 file changed

+67
-67
lines changed

1 file changed

+67
-67
lines changed

.github/workflows/release-build.yml

Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ jobs:
6363
package_name: aws-distro-opentelemetry-node-autoinstrumentation
6464
os: ubuntu-latest
6565

66+
# TODO: Add some sort of smoke/integration testing before we go
67+
# release the artifacts. adot java for reference:
68+
# https://github.com/aws-observability/aws-otel-java-instrumentation/tree/93870a550ac30988fbdd5d3bf1e8f9f1b37916f5/smoke-tests
69+
6670
- name: Upload SDK Tarball
6771
uses: actions/upload-artifact@v4
6872
with:
6973
name: ${{ env.ARTIFACT_NAME }}
7074
path: aws-distro-opentelemetry-node-autoinstrumentation/${{ env.ARTIFACT_NAME }}
71-
72-
# TODO: Add some sort of smoke/integration testing before we go
73-
# release the artifacts. adot java for reference:
74-
# https://github.com/aws-observability/aws-otel-java-instrumentation/tree/93870a550ac30988fbdd5d3bf1e8f9f1b37916f5/smoke-tests
7575

7676
build-layer:
7777
needs: build
@@ -140,34 +140,34 @@ jobs:
140140
registry: public.ecr.aws
141141

142142
# Publish to public ECR
143-
- name: Build and push public ECR image
144-
uses: docker/build-push-action@v5
145-
with:
146-
push: true
147-
context: .
148-
file: ./Dockerfile
149-
platforms: linux/amd64,linux/arm64
150-
tags: |
151-
${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}
143+
# - name: Build and push public ECR image
144+
# uses: docker/build-push-action@v5
145+
# with:
146+
# push: true
147+
# context: .
148+
# file: ./Dockerfile
149+
# platforms: linux/amd64,linux/arm64
150+
# tags: |
151+
# ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}
152152

153153
# Publish to private ECR
154-
- name: Build and push private ECR image
155-
uses: docker/build-push-action@v5
156-
with:
157-
push: true
158-
context: .
159-
file: ./Dockerfile
160-
platforms: linux/amd64,linux/arm64
161-
tags: |
162-
${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ github.event.inputs.version }}
154+
# - name: Build and push private ECR image
155+
# uses: docker/build-push-action@v5
156+
# with:
157+
# push: true
158+
# context: .
159+
# file: ./Dockerfile
160+
# platforms: linux/amd64,linux/arm64
161+
# tags: |
162+
# ${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ github.event.inputs.version }}
163163

164164
# Publish '@aws/aws-distro-opentelemetry-node-autoinstrumentation' to npm
165-
- name: Publish autoinstrumentation to npm
166-
working-directory: aws-distro-opentelemetry-node-autoinstrumentation
167-
env:
168-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
169-
NPM_CONFIG_PROVENANCE: true
170-
run: npm publish
165+
# - name: Publish autoinstrumentation to npm
166+
# working-directory: aws-distro-opentelemetry-node-autoinstrumentation
167+
# env:
168+
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
169+
# NPM_CONFIG_PROVENANCE: true
170+
# run: npm publish
171171

172172
publish-layer-prod:
173173
runs-on: ubuntu-latest
@@ -209,45 +209,45 @@ jobs:
209209
uses: actions/download-artifact@v4
210210
with:
211211
name: layer.zip
212-
- name: publish
213-
run: |
214-
aws s3 mb s3://${{ env.BUCKET_NAME }}
215-
aws s3 cp layer.zip s3://${{ env.BUCKET_NAME }}
216-
layerARN=$(
217-
aws lambda publish-layer-version \
218-
--layer-name ${{ env.LAYER_NAME }} \
219-
--content S3Bucket=${{ env.BUCKET_NAME }},S3Key=layer.zip \
220-
--compatible-runtimes nodejs18.x nodejs20.x nodejs22.x \
221-
--compatible-architectures "arm64" "x86_64" \
222-
--license-info "Apache-2.0" \
223-
--description "AWS Distro of OpenTelemetry Lambda Layer for NodeJs Runtime" \
224-
--query 'LayerVersionArn' \
225-
--output text
226-
)
227-
echo $layerARN
228-
echo "LAYER_ARN=${layerARN}" >> $GITHUB_ENV
229-
mkdir ${{ env.LAYER_NAME }}
230-
echo $layerARN > ${{ env.LAYER_NAME }}/${{ matrix.aws_region }}
231-
cat ${{ env.LAYER_NAME }}/${{ matrix.aws_region }}
232-
- name: public layer
233-
run: |
234-
layerVersion=$(
235-
aws lambda list-layer-versions \
236-
--layer-name ${{ env.LAYER_NAME }} \
237-
--query 'max_by(LayerVersions, &Version).Version'
238-
)
239-
aws lambda add-layer-version-permission \
240-
--layer-name ${{ env.LAYER_NAME }} \
241-
--version-number $layerVersion \
242-
--principal "*" \
243-
--statement-id publish \
244-
--action lambda:GetLayerVersion
245-
- name: upload layer arn artifact
246-
if: ${{ success() }}
247-
uses: actions/upload-artifact@v4
248-
with:
249-
name: ${{ env.LAYER_NAME }}-${{ matrix.aws_region }}
250-
path: ${{ env.LAYER_NAME }}/${{ matrix.aws_region }}
212+
# - name: publish
213+
# run: |
214+
# aws s3 mb s3://${{ env.BUCKET_NAME }}
215+
# aws s3 cp layer.zip s3://${{ env.BUCKET_NAME }}
216+
# layerARN=$(
217+
# aws lambda publish-layer-version \
218+
# --layer-name ${{ env.LAYER_NAME }} \
219+
# --content S3Bucket=${{ env.BUCKET_NAME }},S3Key=layer.zip \
220+
# --compatible-runtimes nodejs18.x nodejs20.x nodejs22.x \
221+
# --compatible-architectures "arm64" "x86_64" \
222+
# --license-info "Apache-2.0" \
223+
# --description "AWS Distro of OpenTelemetry Lambda Layer for NodeJs Runtime" \
224+
# --query 'LayerVersionArn' \
225+
# --output text
226+
# )
227+
# echo $layerARN
228+
# echo "LAYER_ARN=${layerARN}" >> $GITHUB_ENV
229+
# mkdir ${{ env.LAYER_NAME }}
230+
# echo $layerARN > ${{ env.LAYER_NAME }}/${{ matrix.aws_region }}
231+
# cat ${{ env.LAYER_NAME }}/${{ matrix.aws_region }}
232+
# - name: public layer
233+
# run: |
234+
# layerVersion=$(
235+
# aws lambda list-layer-versions \
236+
# --layer-name ${{ env.LAYER_NAME }} \
237+
# --query 'max_by(LayerVersions, &Version).Version'
238+
# )
239+
# aws lambda add-layer-version-permission \
240+
# --layer-name ${{ env.LAYER_NAME }} \
241+
# --version-number $layerVersion \
242+
# --principal "*" \
243+
# --statement-id publish \
244+
# --action lambda:GetLayerVersion
245+
# - name: upload layer arn artifact
246+
# if: ${{ success() }}
247+
# uses: actions/upload-artifact@v4
248+
# with:
249+
# name: ${{ env.LAYER_NAME }}-${{ matrix.aws_region }}
250+
# path: ${{ env.LAYER_NAME }}/${{ matrix.aws_region }}
251251
- name: clean s3
252252
if: always()
253253
run: |

0 commit comments

Comments
 (0)