diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 04d1acd..3dd7a7c 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,7 +1,7 @@ # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.231.2/containers/go/.devcontainer/base.Dockerfile # [Choice] Go version (use -bullseye variants on local arm64/Apple Silicon): 1, 1.16, 1.17, 1-bullseye, 1.16-bullseye, 1.17-bullseye, 1-buster, 1.16-buster, 1.17-buster -FROM mcr.microsoft.com/vscode/devcontainers/go:1.22-bullseye +FROM mcr.microsoft.com/vscode/devcontainers/go:1.23-bullseye # [Choice] Node.js version: none, lts/*, 16, 14, 12, 10 ARG NODE_VERSION="none" diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 254e468..126aaaf 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -8,7 +8,7 @@ // Update the VARIANT arg to pick a version of Go: 1, 1.18, 1.17 // Append -bullseye or -buster to pin to an OS version. // Use -bullseye variants on local arm64/Apple Silicon. - "VARIANT": "1.22-bullseye", + "VARIANT": "1.23-bullseye", // Options "NODE_VERSION": "none" } diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index f8c900e..829d7e6 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: '1.22' + go-version: '1.23' check-latest: true cache: true diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5f37bc9..e16223a 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -24,7 +24,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: '1.22' + go-version: '1.23' - name: BuildAndTest run: make buildandtest @@ -35,5 +35,5 @@ jobs: - uses: dominikh/staticcheck-action@v1.3.0 name: staticcheck with: - version: "2023.1" + version: "latest" install-go: false \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index a0a6a67..d95d03d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.18 AS builder +FROM golang:1.23 AS builder ADD . /app/cli WORKDIR /app/cli RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o /main . diff --git a/go.mod b/go.mod index 5738806..aa91a40 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,9 @@ module github.com/dominikus1993/dev-news-bot -go 1.22 +go 1.23 require ( - github.com/atc0005/go-teams-notify/v2 v2.11.0 + github.com/atc0005/go-teams-notify/v2 v2.12.0 github.com/bwmarrin/discordgo v0.28.1 github.com/dominikus1993/go-toolkit v0.0.15 github.com/dominikus1993/integrationtestcontainers-go v0.0.12 diff --git a/go.sum b/go.sum index 86e3a38..224a17b 100644 --- a/go.sum +++ b/go.sum @@ -61,6 +61,8 @@ github.com/atc0005/go-teams-notify/v2 v2.10.0 h1:eQvRIkyESQgBvlUdQ/iPol/lj3QcRyr github.com/atc0005/go-teams-notify/v2 v2.10.0/go.mod h1:SIeE1UfCcVRYMqP5b+r1ZteHyA/2UAjzWF5COnZ8q0w= github.com/atc0005/go-teams-notify/v2 v2.11.0 h1:CugCxSm9Z8GG1KDpAxCpJJk1uo1p9p50RMYhbJgKvdc= github.com/atc0005/go-teams-notify/v2 v2.11.0/go.mod h1:WSv9moolRsBcpZbwEf6gZxj7h0uJlJskJq5zkEWKO8Y= +github.com/atc0005/go-teams-notify/v2 v2.12.0 h1:68H9lzOeoSHsw6dK6XLWd0VtcnKW2EV0ZExZVHVEGhY= +github.com/atc0005/go-teams-notify/v2 v2.12.0/go.mod h1:WSv9moolRsBcpZbwEf6gZxj7h0uJlJskJq5zkEWKO8Y= github.com/bwmarrin/discordgo v0.27.1 h1:ib9AIc/dom1E/fSIulrBwnez0CToJE113ZGt4HoliGY= github.com/bwmarrin/discordgo v0.27.1/go.mod h1:NJZpH+1AfhIcyQsPeuBKsUtYrRnjkyu0kIVMCHkZtRY= github.com/bwmarrin/discordgo v0.28.1 h1:gXsuo2GBO7NbR6uqmrrBDplPUx2T3nzu775q/Rd1aG4=