File tree Expand file tree Collapse file tree 3 files changed +38
-37
lines changed Expand file tree Collapse file tree 3 files changed +38
-37
lines changed Original file line number Diff line number Diff line change @@ -112,4 +112,34 @@ jobs:
112
112
GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }}
113
113
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}
114
114
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
115
- GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
115
+ GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
116
+
117
+ Deploy :
118
+ runs-on : " ubuntu-latest"
119
+ if : github.ref == 'refs/heads/main'
120
+ environment : staging
121
+ needs :
122
+ - GoReleaser
123
+ - Tests
124
+ steps :
125
+ - uses : earthly/actions-setup@v1
126
+ with :
127
+ github-token : ${{ secrets.GITHUB_TOKEN }}
128
+ version : " latest"
129
+ - uses : ' actions/checkout@v4'
130
+ with :
131
+ fetch-depth : 0
132
+ - name : Tailscale
133
+ uses : tailscale/github-action@v2
134
+ with :
135
+ oauth-client-id : ${{ secrets.TS_OAUTH_CLIENT_ID }}
136
+ oauth-secret : ${{ secrets.TS_OAUTH_SECRET }}
137
+ tags : tag:ci
138
+ - name : " Deploy in staging"
139
+ env :
140
+ TAG : ${{ github.sha }}
141
+ run : >
142
+ earthly
143
+ --no-output
144
+ +deploy-staging
145
+ --TAG=$TAG
Original file line number Diff line number Diff line change @@ -7,43 +7,9 @@ permissions:
7
7
contents : write
8
8
9
9
jobs :
10
- Dirty :
11
- runs-on : " ubuntu-latest"
12
- steps :
13
- - uses : ' actions/checkout@v4'
14
- with :
15
- fetch-depth : 0
16
- - name : Setup Env
17
- uses : ./.github/actions/env
18
- with :
19
- token : ${{ secrets.NUMARY_GITHUB_TOKEN }}
20
- - run : >
21
- earthly
22
- --allow-privileged
23
- --secret SPEAKEASY_API_KEY=$SPEAKEASY_API_KEY
24
- ${{ contains(github.event.pull_request.labels.*.name, 'no-cache') && '--no-cache' || '' }}
25
- +pre-commit
26
- env:
27
- SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}
28
- - name : Get changed files
29
- id : changed-files
30
- run : |
31
- hasChanged=$(git status --porcelain)
32
- if (( $(echo ${#hasChanged}) != 0 )); then
33
- git status
34
- echo "There are changes in the repository"
35
- exit 1
36
- fi
37
-
38
10
GoReleaser :
39
11
runs-on : " ubuntu-latest"
40
- needs :
41
- - Dirty
42
12
steps :
43
- - uses : earthly/actions-setup@v1
44
- with :
45
- github-token : ${{ secrets.GITHUB_TOKEN }}
46
- version : " latest"
47
13
- uses : ' actions/checkout@v4'
48
14
with :
49
15
fetch-depth : 0
71
37
GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }}
72
38
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}
73
39
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
74
- GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
40
+ GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
41
+ - name : Add the OpenAPI file to the release assets
42
+ run : >
43
+ gh release upload ${{github.ref_name}} ./openapi.yaml#openapi.yaml
44
+ env :
45
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
VERSION 0.8
2
2
3
- IMPORT github.com/formancehq/earthly:tags/v0.16.0 AS core
3
+ IMPORT github.com/formancehq/earthly:tags/v0.16.1 AS core
4
4
5
5
6
6
You can’t perform that action at this time.
0 commit comments