chore(hadolint): False positive on windows file path

See: https://github.com/hadolint/hadolint/issues/580
https://cloud.drone.io/appleboy/gorush/502/1/7
This commit is contained in:
Bo-Yi Wu 2021-03-27 10:00:32 +08:00
parent 9dbb058cd7
commit 6f4c2625b2
2 changed files with 15 additions and 17 deletions

View File

@ -51,7 +51,6 @@ steps:
- hadolint docker/Dockerfile.linux.amd64
- hadolint docker/Dockerfile.linux.arm64
- hadolint docker/Dockerfile.linux.arm
- hadolint docker/Dockerfile.windows.amd64
volumes:
- name: gopath
path: /go
@ -98,7 +97,7 @@ steps:
pull: always
image: golang:1.15
commands:
- "go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/gorush"
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/gorush
environment:
CGO_ENABLED: 0
when:
@ -110,7 +109,7 @@ steps:
pull: always
image: golang:1.15
commands:
- "go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/gorush"
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/gorush
environment:
CGO_ENABLED: 0
when:
@ -158,8 +157,8 @@ steps:
trigger:
ref:
- refs/heads/master
- "refs/pull/**"
- "refs/tags/**"
- refs/pull/**
- refs/tags/**
depends_on:
- testing
@ -177,7 +176,7 @@ steps:
pull: always
image: golang:1.15
commands:
- "go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/gorush"
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/gorush
environment:
CGO_ENABLED: 0
when:
@ -189,7 +188,7 @@ steps:
pull: always
image: golang:1.15
commands:
- "go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/gorush"
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/gorush
environment:
CGO_ENABLED: 0
when:
@ -237,8 +236,8 @@ steps:
trigger:
ref:
- refs/heads/master
- "refs/pull/**"
- "refs/tags/**"
- refs/pull/**
- refs/tags/**
depends_on:
- testing
@ -256,7 +255,7 @@ steps:
pull: always
image: golang:1.15
commands:
- "go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/gorush"
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/gorush
environment:
CGO_ENABLED: 0
when:
@ -268,7 +267,7 @@ steps:
pull: always
image: golang:1.15
commands:
- "go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/gorush"
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/gorush
environment:
CGO_ENABLED: 0
when:
@ -316,8 +315,8 @@ steps:
trigger:
ref:
- refs/heads/master
- "refs/pull/**"
- "refs/tags/**"
- refs/pull/**
- refs/tags/**
depends_on:
- testing
@ -347,14 +346,14 @@ steps:
api_key:
from_secret: github_release_api_key
files:
- "dist/release/*"
- dist/release/*
when:
event:
- tag
trigger:
ref:
- "refs/tags/**"
- refs/tags/**
depends_on:
- testing
@ -382,7 +381,7 @@ steps:
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
- refs/tags/**
depends_on:
- linux-amd64

View File

@ -72,7 +72,6 @@
'hadolint docker/Dockerfile.linux.amd64',
'hadolint docker/Dockerfile.linux.arm64',
'hadolint docker/Dockerfile.linux.arm',
'hadolint docker/Dockerfile.windows.amd64',
],
volumes: [
{