Update go version

master
IamTheFij 1 year ago
parent 3c14a02770
commit cdd8a69669
  1. 4
      .drone.yml
  2. 5
      .pre-commit-config.yaml
  3. 4
      Dockerfile.multi-stage

@ -4,7 +4,7 @@ name: test
steps:
- name: test
image: golang:1.15
image: golang:1.17
environment:
VERSION: ${DRONE_TAG:-${DRONE_COMMIT}}
commands:
@ -30,7 +30,7 @@ trigger:
steps:
- name: build all binaries
image: golang:1.15
image: golang:1.17
environment:
VERSION: ${DRONE_TAG:-${DRONE_COMMIT}}
commands:

@ -10,12 +10,15 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- repo: https://github.com/golangci/golangci-lint
rev: v1.42.1
hooks:
- id: golangci-lint
- repo: git://github.com/dnephin/pre-commit-golang
rev: v0.4.0
hooks:
- id: go-fmt
- id: go-imports
- id: golangci-lint
- repo: https://github.com/hadolint/hadolint
rev: v2.4.0
hooks:

@ -1,7 +1,5 @@
ARG REPO=library
FROM golang:1.12-alpine AS builder
RUN apk add --no-cache git=~2
FROM golang:1.17 AS builder
RUN mkdir /app
WORKDIR /app

Loading…
Cancel
Save