Add docker-compose setup for demo/testing (#188) #199
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
| on: [push, pull_request] | |
| jobs: | |
| ci: | |
| name: CI | |
| strategy: | |
| matrix: | |
| go-version: [1.16.x] | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: 'Install Go' | |
| uses: actions/setup-go@v2 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Test | |
| run: make test | |
| - name: Build | |
| run: make build | |
| - name: 'Bundle Zip' | |
| if: github.repository == 'CrunchyData/pg_featureserv' && github.ref_name == 'master' | |
| env: | |
| MATRIX_OS: ${{ matrix.os }} | |
| run: ./ci/github-bundle.sh | |
| shell: bash | |
| - name: 'Login to AWS' | |
| if: github.repository == 'CrunchyData/pg_featureserv' && github.ref_name == 'master' | |
| uses: aws-actions/configure-aws-credentials@v1 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| aws-region: us-east-1 | |
| - name: 'Upload Zip' | |
| if: github.repository == 'CrunchyData/pg_featureserv' && github.ref_name == 'master' | |
| run: aws s3 sync ./upload s3://postgisftw |