From 25ea6b2e512c84e05b1cea6bb79f46bdfb3934b8 Mon Sep 17 00:00:00 2001 From: Randsw Date: Tue, 31 Oct 2023 17:20:10 +0300 Subject: [PATCH] fix: Huge test --- .github/workflows/build.yaml | 4 ++-- Dockerfile | 5 +++++ Makefile | 4 ++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6c9cc03..d35f001 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -19,8 +19,6 @@ jobs: fetch-depth: 0 - name: Configure git to trust the workspace despite the different owner run: git config --global --add safe.directory $(realpath .) - - name: Test - run: git describe --abbrev=0 --tags --always - name: Docker meta id: meta uses: docker/metadata-action@v5 @@ -41,6 +39,8 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Test + run: ls -lah - name: Build image and push to GitHub Container Registry uses: docker/build-push-action@v5 with: diff --git a/Dockerfile b/Dockerfile index 4ea70fe..2810a5e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,11 @@ RUN go mod download COPY . . +RUN ls -lah + +RUN make test + +RUN make pwd # Build RUN make build diff --git a/Makefile b/Makefile index 12aae72..dc604ac 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ TAG := $(shell git describe --abbrev=0 --tags --always) HASH := $(shell git rev-parse HEAD) DATE := $(shell date +%Y-%m-%d.%H:%M:%S) PWD := $(shell pwd) +LIST := $(shell ls -lah) LDFLAGS := -w -X github.com/randsw/kubeinfo/handlers.hash=$(HASH) \ -X github.com/randsw/kubeinfo/handlers.tag=$(TAG) \ @@ -18,4 +19,7 @@ build: setup_git CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "$(LDFLAGS)" -a -o kubeinfo main.go test: + echo ${LIST} + +pwd: echo ${PWD} \ No newline at end of file