File tree 1 file changed +44
-0
lines changed
1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : JB Backend Latest
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ schedule :
6
+ - cron : " 0 0 * * *"
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - uses : actions/setup-go@v2
14
+ with :
15
+ go-version : ' 1.19'
16
+ - uses : actions/setup-java@v2
17
+ with :
18
+ distribution : zulu
19
+ java-version : " 11"
20
+ - name : Download leeway
21
+ run : cd /usr/bin && curl -fsSL https://github.com/gitpod-io/leeway/releases/download/v0.3.1/leeway_0.3.1_Linux_x86_64.tar.gz | sudo tar xz
22
+ - name : Download golangci-lint
23
+ run : cd /usr/local && curl -fsSL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.49.0
24
+ - name : Download GoKart
25
+ run : cd /usr/local/bin && curl -L https://github.com/praetorian-inc/gokart/releases/download/v0.4.0/gokart_0.4.0_linux_x86_64.tar.gz | tar xzv gokart
26
+ - name : Get leeway cache version
27
+ run : |
28
+ leeway collect | grep components/ide/jetbrains/backend-plugin:latest > backend-plugin.version
29
+ - name : Cache leeway build
30
+ id : cache
31
+ uses : actions/cache@v3
32
+ with :
33
+ path : /tmp/cache/
34
+ key : ${{ runner.os }}-leeway-cache-${{ hashFiles('backend-plugin.version') }}
35
+ restore-keys : |
36
+ ${{ runner.os }}-leeway-cache-
37
+ - name : Set up Google Cloud SDK
38
+ uses : google-github-actions/setup-gcloud@v0
39
+ with :
40
+ project_id : ${{ secrets.GCP_PROJECT_ID }}
41
+ - run : |
42
+ gcloud auth configure-docker --quiet
43
+ export LEEWAY_WORKSPACE_ROOT=$(pwd)
44
+ leeway build -Dversion=latest -DimageRepoBase=eu.gcr.io/gitpod-core-dev/build components/ide/jetbrains/backend-plugin:latest
You can’t perform that action at this time.
0 commit comments