Merge pull request #36 from brontoio/proxied_logs #36
This file contains hidden or 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: 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 |