This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-eyes.git


The following commit(s) were added to refs/heads/main by this push:
     new 3d4ab04  Fix GHA Dockerfile and Makefile
3d4ab04 is described below

commit 3d4ab0415e80ce41fc2814ed31e22b7bdec2ca0f
Author: kezhenxu94 <[email protected]>
AuthorDate: Tue Dec 22 11:38:11 2020 +0800

    Fix GHA Dockerfile and Makefile
---
 .licenserc.yaml        | 4 +++-
 license-eye/Dockerfile | 2 +-
 license-eye/Makefile   | 6 +++++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/.licenserc.yaml b/.licenserc.yaml
index 6419a21..049ce1b 100644
--- a/.licenserc.yaml
+++ b/.licenserc.yaml
@@ -40,6 +40,8 @@ header: # `header` section is configurations for source codes 
license header.
   paths-ignore: # `paths-ignore` are the path list that will be ignored by 
license-eye.
     - '.git/**'
     - '.idea/**'
+    - 'dist/**'
+    - 'licenses/**'
     - '**/bin/**'
     - '**/*.md'
     - '**/.DS_Store'
@@ -49,4 +51,4 @@ header: # `header` section is configurations for source codes 
license header.
     - 'LICENSE'
     - 'NOTICE'
     - '**/assets.gen.go'
-    - 'assets/languages.yaml'
+    - '**/assets/languages.yaml'
diff --git a/license-eye/Dockerfile b/license-eye/Dockerfile
index 39da95b..d4073c6 100644
--- a/license-eye/Dockerfile
+++ b/license-eye/Dockerfile
@@ -22,7 +22,7 @@ WORKDIR /license-eye
 
 COPY . .
 
-RUN apk add make && make build
+RUN apk add make curl && make build
 
 FROM alpine:3 AS bin
 
diff --git a/license-eye/Makefile b/license-eye/Makefile
index 6dd1cb2..0629e37 100644
--- a/license-eye/Makefile
+++ b/license-eye/Makefile
@@ -70,7 +70,11 @@ $(PLATFORMS):
        GOOS=$(os) GOARCH=$(ARCH) $(GO_BUILD) $(GO_BUILD_FLAGS) -ldflags 
"$(GO_BUILD_LDFLAGS)" -o $(OUT_DIR)/$(os)/$(PROJECT) cmd/license-eye/main.go
 
 .PHONY: build
-build: windows linux darwin
+build: codegen windows linux darwin
+
+.PHONY: docker
+docker:
+       docker build . -t license-eye:latest
 
 .PHONY: clean
 clean:

Reply via email to