From 73b4c45e039064fbe2d5f9f479f09e4b0352c6db Mon Sep 17 00:00:00 2001 From: Doctor Vince Date: Tue, 13 Feb 2024 16:49:45 -0500 Subject: [PATCH] update lint-test target --- .github/workflows/push-pr-lint.yml | 16 ++++++++-------- .github/workflows/release.yml | 4 ++-- Makefile | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/push-pr-lint.yml b/.github/workflows/push-pr-lint.yml index f2bb16f3..6bd0cca6 100644 --- a/.github/workflows/push-pr-lint.yml +++ b/.github/workflows/push-pr-lint.yml @@ -25,31 +25,31 @@ jobs: - name: Install Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version: '1.21.3' - name: Checkout code uses: actions/checkout@v4 - name: build binary - run: make build-linux + run: make build - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Build Alloy Docker image - no push - id: dockerbuild-conditionorc + - name: Build Docker image - no push + id: docker-build uses: docker/build-push-action@v5 with: context: . push: false - tags: ghcr.io/metal-toolbox/conditionorc:latest + tags: ghcr.io/metal-toolbox/fleet-rest-skeleton:latest file: Dockerfile - - name: Scan image - Alloy - id: scan-Alloy-image + - name: Scan image + id: scan-image uses: anchore/scan-action@v3 with: - image: ghcr.io/metal-toolbox/conditionorc:latest + image: ghcr.io/metal-toolbox/fleet-rest-skeleton:latest acs-report-enable: true # TODO(joel): Fail build once we migrate off CentOS. fail-build: false diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d6071219..bccfbda4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,7 @@ jobs: name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.21" + go-version: "1.21.3" - name: install cosign uses: sigstore/cosign-installer@main @@ -44,4 +44,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} COSIGN_EXPERIMENTAL: 1 - GOVERSION: "1.21" + GOVERSION: "1.21.3" diff --git a/Makefile b/Makefile index 60b51ff1..5f6531db 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ lint: test: lint CGO_ENABLED=0 go test -timeout 1m -v -covermode=atomic ./... -build: lint +build: CGO_ENABLED=0 go build -o ${SERVICE_NAME} clean: