mirror of
https://github.com/pushbits/server.git
synced 2025-04-29 18:26:49 +02:00
Use env variable to specify Go version in CI
This commit is contained in:
parent
78a99281a7
commit
e426b46f28
3 changed files with 12 additions and 8 deletions
3
.github/workflows/documentation.yml
vendored
3
.github/workflows/documentation.yml
vendored
|
@ -6,6 +6,7 @@ on:
|
|||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||
|
||||
env:
|
||||
GO_VERSION: '1.21.1'
|
||||
PB_BUILD_VERSION: unknown # Needed for using Make targets.
|
||||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
||||
|
||||
|
@ -21,7 +22,7 @@ jobs:
|
|||
- name: Export GOBIN
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.21.1'
|
||||
go-version: '${{env.GO_VERSION}}'
|
||||
|
||||
- name: Install dependencies
|
||||
run: make setup
|
||||
|
|
7
.github/workflows/publish.yml
vendored
7
.github/workflows/publish.yml
vendored
|
@ -5,6 +5,9 @@ on:
|
|||
tags:
|
||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||
|
||||
env:
|
||||
GO_VERSION: '1.21.1'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Test
|
||||
|
@ -19,7 +22,7 @@ jobs:
|
|||
- name: Export GOBIN
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.21.1'
|
||||
go-version: '${{env.GO_VERSION}}'
|
||||
|
||||
- name: Install dependencies
|
||||
run: make setup
|
||||
|
@ -86,7 +89,7 @@ jobs:
|
|||
- name: Export GOBIN
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.20.5'
|
||||
go-version: '${{env.GO_VERSION}}'
|
||||
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v4
|
||||
|
|
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
|
@ -3,13 +3,13 @@ name: Test
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
tags:
|
||||
- '**'
|
||||
- '!v[0-9]+.[0-9]+.[0-9]+'
|
||||
- 'main'
|
||||
pull_request:
|
||||
branches:
|
||||
- 'main'
|
||||
|
||||
env:
|
||||
GO_VERSION: '1.21.1'
|
||||
PB_BUILD_VERSION: pipeline-${{ github.sha }}
|
||||
|
||||
jobs:
|
||||
|
@ -24,7 +24,7 @@ jobs:
|
|||
- name: Export GOBIN
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.21.1'
|
||||
go-version: '${{env.GO_VERSION}}'
|
||||
|
||||
- name: Install dependencies
|
||||
run: make setup
|
||||
|
|
Loading…
Add table
Reference in a new issue