chore: upgrade golang version

This commit is contained in:
Andy Hsu 2023-11-25 14:22:13 +08:00
parent 68af284dad
commit d5f381ef6f
4 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@ jobs:
strategy: strategy:
matrix: matrix:
platform: [ubuntu-latest] platform: [ubuntu-latest]
go-version: [ '1.20' ] go-version: [ '1.21' ]
name: Build name: Build
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:

View File

@ -9,7 +9,7 @@ jobs:
strategy: strategy:
matrix: matrix:
platform: [ ubuntu-latest ] platform: [ ubuntu-latest ]
go-version: [ '1.20' ] go-version: [ '1.21' ]
name: Release name: Release
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:

View File

@ -1,11 +1,11 @@
FROM alpine:3.18 as builder FROM alpine:edge as builder
LABEL stage=go-builder LABEL stage=go-builder
WORKDIR /app/ WORKDIR /app/
COPY ./ ./ COPY ./ ./
RUN apk add --no-cache bash curl gcc git go musl-dev; \ RUN apk add --no-cache bash curl gcc git go musl-dev; \
bash build.sh release docker bash build.sh release docker
FROM alpine:3.18 FROM alpine:edge
LABEL MAINTAINER="i@nn.ci" LABEL MAINTAINER="i@nn.ci"
VOLUME /opt/alist/data/ VOLUME /opt/alist/data/
WORKDIR /opt/alist/ WORKDIR /opt/alist/

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/alist-org/alist/v3 module github.com/alist-org/alist/v3
go 1.20 go 1.21
require ( require (
github.com/SheltonZhu/115driver v1.0.21 github.com/SheltonZhu/115driver v1.0.21