Update GoLang to 1.17 (#1295)
* Update GoLang to 1.17 * Rename pipeline jobs
This commit is contained in:
parent
25aab8bcb5
commit
c2251e6ddc
|
@ -4,7 +4,7 @@
|
||||||
"dockerfile": "Dockerfile",
|
"dockerfile": "Dockerfile",
|
||||||
"args": {
|
"args": {
|
||||||
// Update the VARIANT arg to pick a version of Go: 1, 1.15, 1.14
|
// Update the VARIANT arg to pick a version of Go: 1, 1.15, 1.14
|
||||||
"VARIANT": "1.16",
|
"VARIANT": "1.17",
|
||||||
// Options
|
// Options
|
||||||
"INSTALL_NODE": "true",
|
"INSTALL_NODE": "true",
|
||||||
"NODE_VERSION": "v16"
|
"NODE_VERSION": "v16"
|
||||||
|
|
|
@ -10,7 +10,7 @@ on:
|
||||||
- master
|
- master
|
||||||
jobs:
|
jobs:
|
||||||
golangci-lint:
|
golangci-lint:
|
||||||
name: Lint Server
|
name: Lint Go code
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install taglib
|
- name: Install taglib
|
||||||
|
@ -26,11 +26,11 @@ jobs:
|
||||||
args: --timeout 2m
|
args: --timeout 2m
|
||||||
|
|
||||||
go:
|
go:
|
||||||
name: Test Server with Go ${{ matrix.go_version }}
|
name: Test with Go ${{ matrix.go_version }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go_version: [1.16.x]
|
go_version: [1.16.x, 1.17.x]
|
||||||
steps:
|
steps:
|
||||||
- name: Install taglib
|
- name: Install taglib
|
||||||
run: sudo apt-get install libtag1-dev
|
run: sudo apt-get install libtag1-dev
|
||||||
|
@ -107,7 +107,7 @@ jobs:
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
binaries:
|
binaries:
|
||||||
name: Binaries
|
name: Build binaries
|
||||||
needs: [js, go, golangci-lint]
|
needs: [js, go, golangci-lint]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -129,7 +129,7 @@ jobs:
|
||||||
|
|
||||||
- name: Run GoReleaser - SNAPSHOT
|
- name: Run GoReleaser - SNAPSHOT
|
||||||
if: startsWith(github.ref, 'refs/tags/') != true
|
if: startsWith(github.ref, 'refs/tags/') != true
|
||||||
uses: docker://deluan/ci-goreleaser:1.16.4-1
|
uses: docker://deluan/ci-goreleaser:1.17.0-1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
@ -137,7 +137,7 @@ jobs:
|
||||||
|
|
||||||
- name: Run GoReleaser - RELEASE
|
- name: Run GoReleaser - RELEASE
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
uses: docker://deluan/ci-goreleaser:1.16.4-1
|
uses: docker://deluan/ci-goreleaser:1.17.0-1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
@ -153,7 +153,7 @@ jobs:
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
name: Docker images
|
name: Build Docker images
|
||||||
needs: [binaries]
|
needs: [binaries]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -9,7 +9,7 @@ GIT_SHA=source_archive
|
||||||
GIT_TAG=$(patsubst navidrome-%,v%,$(notdir $(PWD)))
|
GIT_TAG=$(patsubst navidrome-%,v%,$(notdir $(PWD)))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CI_RELEASER_VERSION=1.16.4-1 ## https://github.com/navidrome/ci-goreleaser
|
CI_RELEASER_VERSION=1.17.0-1 ## https://github.com/navidrome/ci-goreleaser
|
||||||
|
|
||||||
setup: check_env download-deps setup-git ##@1_Run_First Install dependencies and prepare development environment
|
setup: check_env download-deps setup-git ##@1_Run_First Install dependencies and prepare development environment
|
||||||
@echo Downloading Node dependencies...
|
@echo Downloading Node dependencies...
|
||||||
|
|
Loading…
Reference in New Issue