Invest endpoint loan retrieval fix (#1606) #130
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
# build workflow builds docker images, pushes images to docker hub and updates swagger API | |
on: | |
push: | |
branches: [main] | |
name: Build | |
jobs: | |
build: | |
strategy: | |
matrix: | |
go-version: [1.18.x] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
env: | |
GOPATH: ${{ github.workspace }} | |
SWAGGER_API_KEY: ${{ secrets.swagger_api_key }} | |
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | |
defaults: | |
run: | |
working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Check out code | |
uses: actions/checkout@v2 | |
with: | |
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} | |
fetch-depth: 0 | |
- uses: actions/[email protected] | |
with: | |
path: ${{ env.GOPATH }}/pkg/mod | |
key: ${{ runner.os }}-go-${{ github.job }} | |
- name: Build docker images | |
run: make build-docker | |
- name: Push images to Docker Hub | |
run: make push-to-docker | |
- name: Push API to swagger | |
run: make push-to-swagger |