diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 59d3cf2..1bc6d2c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,17 +13,16 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: [ '1.18', '1.19' ] + go: [ '1.20', '1.21', '1.22' ] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} check-latest: true - cache: true - run: make build - run: make test - - uses: dominikh/staticcheck-action@v1.2.0 + - uses: dominikh/staticcheck-action@v1.3.1 with: - version: "2022.1.1" + version: "2023.1.7" install-go: false diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 304e820..85eba4c 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -9,13 +9,12 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: 1.19 + go-version: 1.21 check-latest: true - cache: true - - uses: goreleaser/goreleaser-action@v3 + - uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: latest diff --git a/Dockerfile b/Dockerfile index 9244e94..d17d7f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19.2-alpine AS build +FROM golang:1.21-alpine AS build WORKDIR /app COPY . . @@ -8,7 +8,7 @@ RUN CGO_ENABLED=0 go build -o /vimeo-dl . ############################################################ -FROM alpine:3.17 AS no-ffmpeg +FROM alpine:3.19 AS no-ffmpeg COPY --from=build /vimeo-dl /usr/bin/vimeo-dl WORKDIR /downloads ENTRYPOINT [ "vimeo-dl" ] diff --git a/go.mod b/go.mod index f677bed..d6c5fbd 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/akiomik/vimeo-dl -go 1.19 +go 1.21 require github.com/spf13/cobra v1.8.0