From 5a5cb4a127450c756a3c7c7fa8eaba07e9a4f54b Mon Sep 17 00:00:00 2001 From: sturman <4456572+sturman@users.noreply.github.com> Date: Thu, 2 May 2024 23:17:08 +0300 Subject: [PATCH 1/3] Update GitHub Actions steps --- .github/workflows/go.yml | 9 ++++----- .github/workflows/goreleaser.yml | 7 +++---- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 59d3cf2..83032af 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,15 +15,14 @@ jobs: matrix: go: [ '1.18', '1.19' ] 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..4d0da66 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 check-latest: true - cache: true - - uses: goreleaser/goreleaser-action@v3 + - uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: latest From 30689cb05a58763138dc7ccb9bb08a889e9a0489 Mon Sep 17 00:00:00 2001 From: sturman <4456572+sturman@users.noreply.github.com> Date: Thu, 2 May 2024 23:31:43 +0300 Subject: [PATCH 2/3] Update go version --- .github/workflows/go.yml | 2 +- .github/workflows/goreleaser.yml | 2 +- go.mod | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 83032af..1bc6d2c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: [ '1.18', '1.19' ] + go: [ '1.20', '1.21', '1.22' ] steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 4d0da66..85eba4c 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.19 + go-version: 1.21 check-latest: true - uses: goreleaser/goreleaser-action@v5 with: 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 From 44c0ed5938a65a92e6274cf0a00e423a26212ec6 Mon Sep 17 00:00:00 2001 From: sturman <4456572+sturman@users.noreply.github.com> Date: Thu, 2 May 2024 23:51:58 +0300 Subject: [PATCH 3/3] Update base container images --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" ]