Skip to content

Commit

Permalink
update lint-test target
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorVin committed Feb 13, 2024
1 parent dcbaf9a commit 3e8211d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/push-pr-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,25 @@ jobs:
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
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/metal-toolbox/fleet-rest-skeleton

go 1.21.3
go 1.21

require (
github.com/equinix-labs/otel-init-go v0.0.9
Expand Down

0 comments on commit 3e8211d

Please sign in to comment.