Add Otel Deployment #83
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: Build, Bundle, Release Go Plugin | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Copy Env Files | |
run: cp .env.example .env | |
- name: Build Go Plugin | |
run: make go-build | |
- name: Bundle Go Plugin | |
run: TYK_VERSION=v5.2.0 docker-compose run --rm --entrypoint "bundle/bundle-entrypoint.sh" tyk-gateway | |
- name: Upload Bundle | |
uses: actions/upload-artifact@v3 | |
with: | |
name: customgoplugin.zip | |
path: tyk/bundle/bundle.zip | |
- uses: jakejarvis/s3-sync-action@master | |
with: | |
args: --acl public-read --follow-symlinks | |
env: | |
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_REGION: 'us-east-1' | |
SOURCE_DIR: 'tyk/bundle' | |