-
Notifications
You must be signed in to change notification settings - Fork 60
51 lines (45 loc) · 1.34 KB
/
envd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Envd
on:
workflow_call:
secrets:
service_account_email:
required: true
workload_identity_provider:
required: true
version:
required: true
gcp_project_id:
required: true
jobs:
publish:
name: Build & upload
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: ./packages/envd/go.mod
cache: true
cache-dependency-path: ./packages/envd/go.sum
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
workdir: ./packages/envd
version: latest
args: release
env:
GITHUB_TOKEN: ${{ github.token }}
GORELEASER_CURRENT_TAG: ${{ secrets.version }}
- name: Setup Service Account
uses: google-github-actions/auth@v1
with:
workload_identity_provider: ${{ secrets.workload_identity_provider }}
service_account: ${{ secrets.service_account_email }}
- name: Upload envd
uses: "google-github-actions/upload-cloud-storage@v1"
with:
path: "./packages/envd/dist/envd_linux_amd64_v1/envd"
destination: "${{ secrets.gcp_project_id }}-fc-env-pipeline"
gzip: false