add agent and extension version to layer description (#326) #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Ruby Layers | |
on: | |
push: | |
tags: | |
- v**_ruby | |
jobs: | |
publish-ruby: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby-version: [3.2, 3.3] | |
steps: | |
- uses: actions/[email protected] | |
- name: Use Ruby ${{ matrix.ruby-version }} | |
uses: ruby/[email protected] | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
- name: Check Tag | |
id: ruby-check-tag | |
run: | | |
if [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+(\.[0-9]+)*_ruby$ ]]; then | |
echo "match=true" >> $GITHUB_OUTPUT | |
fi | |
- name: Clean the workspace | |
run: ./bin/clean | |
working-directory: ruby | |
- name: Install Ruby Dependencies | |
run: bundle | |
working-directory: ruby | |
- name: Obtain Ruby version without the dot | |
id: ruby-version-without-dot | |
run: >- | |
echo "::set-output name=VERSION::$( | |
echo ${{ matrix.ruby-version }} | sed 's/\.//' | |
)" | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: arm64, amd64 | |
- name: Build and Publish layer | |
if: steps.ruby-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: ./publish-layers.sh ruby${{ matrix.ruby-version }} | |
working-directory: ruby |