rest middleware: add trace_id into the log buffer #214
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: deploy | |
on: | |
push: | |
tags: [ v* ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
- name: Setup GCP | |
id: 'auth' | |
uses: 'google-github-actions/auth@v1' | |
with: | |
credentials_json: '${{ secrets.GCS_SA_KEY }}' | |
- name: 'Set up Cloud SDK' | |
uses: 'google-github-actions/setup-gcloud@v1' | |
- name: Build binaries | |
run: | | |
mkdir candi | |
GOOS=linux GOARCH=amd64 go build -o candi/candi-linux cmd/candi/*.go | |
GOOS=darwin GOARCH=amd64 go build -o candi/candi-osx cmd/candi/*.go | |
GOOS=windows GOARCH=amd64 go build -o candi/candi-x64.exe cmd/candi/*.go | |
GOOS=windows GOARCH=386 go build -o candi/candi-x86.exe cmd/candi/*.go | |
- name: Deploy | |
run: |- | |
gsutil -m rsync -R candi gs://agungdp/bin/candi | |
gsutil acl -r ch -u AllUsers:R gs://agungdp/bin/candi |