Skip to content

release prod extension layer for testing v14 #16

release prod extension layer for testing v14

release prod extension layer for testing v14 #16

name: Publish Extension Layer
on:
push:
tags:
- v**_extension
jobs:
publish-extension:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.12 ]
steps:
- uses: actions/checkout@v4
- name: Check Tag
id: extension-check-tag
run: |
if [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+(\.[0-9]+)*_extension$ ]]; then
echo "match=true" >> $GITHUB_OUTPUT
fi
- name: Install publish dependencies
if: steps.extension-check-tag.outputs.match == 'true'
run: pip install -U awscli
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64, amd64
- name: Publish extension layer
if: steps.extension-check-tag.outputs.match == 'true'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
cd extension
./publish-layer.sh