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.amd64
- hadolint docker/Dockerfile.linux.arm64 - hadolint docker/Dockerfile.linux.arm64
- hadolint docker/Dockerfile.linux.arm - hadolint docker/Dockerfile.linux.arm
- hadolint docker/Dockerfile.windows.amd64
volumes: volumes:
- name: gopath - name: gopath
path: /go path: /go
@ -98,7 +97,7 @@ steps:
pull: always pull: always
image: golang:1.15 image: golang:1.15
commands: 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: environment:
CGO_ENABLED: 0 CGO_ENABLED: 0
when: when:
@ -110,7 +109,7 @@ steps:
pull: always pull: always
image: golang:1.15 image: golang:1.15
commands: 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: environment:
CGO_ENABLED: 0 CGO_ENABLED: 0
when: when:
@ -158,8 +157,8 @@ steps:
trigger: trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- "refs/pull/**" - refs/pull/**
- "refs/tags/**" - refs/tags/**
depends_on: depends_on:
- testing - testing
@ -177,7 +176,7 @@ steps:
pull: always pull: always
image: golang:1.15 image: golang:1.15
commands: 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: environment:
CGO_ENABLED: 0 CGO_ENABLED: 0
when: when:
@ -189,7 +188,7 @@ steps:
pull: always pull: always
image: golang:1.15 image: golang:1.15
commands: 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: environment:
CGO_ENABLED: 0 CGO_ENABLED: 0
when: when:
@ -237,8 +236,8 @@ steps:
trigger: trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- "refs/pull/**" - refs/pull/**
- "refs/tags/**" - refs/tags/**
depends_on: depends_on:
- testing - testing
@ -256,7 +255,7 @@ steps:
pull: always pull: always
image: golang:1.15 image: golang:1.15
commands: 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: environment:
CGO_ENABLED: 0 CGO_ENABLED: 0
when: when:
@ -268,7 +267,7 @@ steps:
pull: always pull: always
image: golang:1.15 image: golang:1.15
commands: 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: environment:
CGO_ENABLED: 0 CGO_ENABLED: 0
when: when:
@ -316,8 +315,8 @@ steps:
trigger: trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- "refs/pull/**" - refs/pull/**
- "refs/tags/**" - refs/tags/**
depends_on: depends_on:
- testing - testing
@ -347,14 +346,14 @@ steps:
api_key: api_key:
from_secret: github_release_api_key from_secret: github_release_api_key
files: files:
- "dist/release/*" - dist/release/*
when: when:
event: event:
- tag - tag
trigger: trigger:
ref: ref:
- "refs/tags/**" - refs/tags/**
depends_on: depends_on:
- testing - testing
@ -382,7 +381,7 @@ steps:
trigger: trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- "refs/tags/**" - refs/tags/**
depends_on: depends_on:
- linux-amd64 - linux-amd64

View File

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