Skip to content

Merge pull request #36 from brontoio/proxied_logs #36

Merge pull request #36 from brontoio/proxied_logs

Merge pull request #36 from brontoio/proxied_logs #36

Workflow file for this run

name: Release as AWS Lambda artefact
on:
push:
branches: [ "main" ]
jobs:
deployment:
environment: production
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
packages: write
deployments: write
env:
VERSION: "1.0.${{ github.run_number }}-${{ github.run_attempt }}"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Tag Version
if: success()
run: git tag ${{ env.VERSION }} && git push --tags
shell: bash
- name: Build Lambda Artefact
run: cd log_forwarder && zip -r ../brontobytes-aws-ingestion-python *
shell: bash
- name: Compute package hash
run: openssl dgst -sha256 -binary brontobytes-aws-ingestion-python.zip | openssl enc -base64 > brontobytes-aws-ingestion-python.zip.b64sha256
shell: bash
- name: Release Lambda Artefact
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ env.VERSION }}
files: |
brontobytes-aws-ingestion-python.zip
brontobytes-aws-ingestion-python.zip.b64sha256