Skip to content

Commit

Permalink
Merge pull request #7 from mwennrich/go1.20
Browse files Browse the repository at this point in the history
build with go 1.20
  • Loading branch information
mwennrich authored Feb 15, 2023
2 parents c4d6c28 + b51550c commit ea755ce
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Docker Login
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}

- name: Setup go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.20.1

- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.49.0
version: v1.51.1
args: --timeout=3m -p bugs -p unused

- name: Build the Docker images
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Figure out if running fork PR
id: fork
run: '["${{ secrets.DOCKER_REGISTRY_TOKEN }}" == ""] && echo "::set-output name=is_fork_pr::true" || echo "::set-output name=is_fork_pr::false"'

- name: Docker Login
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
Expand All @@ -26,12 +26,12 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.20.1

- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.49.0
version: v1.51.1
args: --timeout=3m -p bugs -p unused

- name: Build
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Docker Login
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}

- name: Setup go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.20.1

- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.49.0
version: v1.51.1
args: --timeout=3m -p bugs -p unused

- name: Build the Docker images
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19 AS build
FROM golang:1.20 AS build
ENV GO111MODULE=on
ENV CGO_ENABLED=0

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/mwennrich/alertlogger

go 1.19
go 1.20

0 comments on commit ea755ce

Please sign in to comment.