Skip to content

Commit

Permalink
Update actions and go (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 authored Oct 26, 2023
1 parent efce6d8 commit 08a41df
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go 1.20
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"
id: go

- name: Docker Login
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_REGISTRY_USER }}
Expand All @@ -28,7 +28,7 @@ jobs:
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
args: -p bugs --timeout=3m
args: -p bugs --timeout=10m

- name: Build
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go 1.20
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"
id: go

- 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@v2
uses: docker/login-action@v3
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_REGISTRY_USER }}
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
args: -p bugs --timeout=3m
args: -p bugs --timeout=10m

- name: Build
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go 1.20
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"
id: go

- name: Docker Login
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_REGISTRY_USER }}
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
args: -p bugs --timeout=3m
args: -p bugs --timeout=10m

- name: Build
run: |
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.20-alpine3.18 AS builder
FROM golang:1.21-alpine3.18 AS builder
RUN apk add make git gcc musl-dev
WORKDIR /work
COPY . .
Expand Down

0 comments on commit 08a41df

Please sign in to comment.