Skip to content

Commit

Permalink
fix: rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Dec 18, 2024
1 parent 371324d commit baf48fb
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: og-task-grype
name: og-task-container-vulnerability
path: ./local.tar
retention-days: 1
- name: Set Latest Tag Output
Expand All @@ -69,7 +69,7 @@ jobs:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: og-task-grype
name: og-task-container-vulnerability
path: .
- name: Unpack Task Artifact
run: tar -xvf local.tar
Expand All @@ -88,7 +88,7 @@ jobs:
with:
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/og-task-grype:local-latest
ghcr.io/${{ github.repository_owner }}/og-task-grype:local-${{ needs.build.outputs.latest_tag }}
ghcr.io/${{ github.repository_owner }}/og-task-container-vulnerability:local-latest
ghcr.io/${{ github.repository_owner }}/og-task-container-vulnerability:local-${{ needs.build.outputs.latest_tag }}
file: Dockerfile
context: .
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN chmod 1777 /tmp
# Build your Go binary
WORKDIR /app
COPY . .
RUN go build -o og-task-grype main.go
RUN go build -o og-task-container-vulnerability main.go

# Final minimal image
FROM scratch
Expand All @@ -33,8 +33,8 @@ COPY --from=build /usr/local/bin/grype /usr/local/bin/grype
# Copy /tmp directory
COPY --from=build /tmp /tmp

# Copy og-task-grype binary
COPY --from=build /app/og-task-grype /og-task-grype
# Copy og-task-container-vulnerability binary
COPY --from=build /app/og-task-container-vulnerability /og-task-container-vulnerability

# Copy the database into the default location
COPY --from=build /.cache/grype/db /.cache/grype/db
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build

local-build:
CC=/usr/bin/musl-gcc GOPRIVATE="github.com/opengovern" GOOS=linux GOARCH=amd64 go build -a -v -mod=mod -ldflags "-linkmode external -extldflags '-static' -s -w" -tags musl -o ./local/og-task-grype main.go
CC=/usr/bin/musl-gcc GOPRIVATE="github.com/opengovern" GOOS=linux GOARCH=amd64 go build -a -v -mod=mod -ldflags "-linkmode external -extldflags '-static' -s -w" -tags musl -o ./local/og-task-container-vulnerability main.go
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/opengovern/og-task-grype
module github.com/opengovern/og-task-container-vulnerability

go 1.23.3

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/opengovern/og-task-grype/worker"
"github.com/opengovern/og-task-container-vulnerability/worker"
"golang.org/x/net/context"
"os"
"os/signal"
Expand Down
3 changes: 1 addition & 2 deletions worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import (
"encoding/json"
"fmt"
"github.com/nats-io/nats.go/jetstream"
"github.com/opengovern/og-task-grype/task"
"github.com/opengovern/og-task-container-vulnerability/task"
"github.com/opengovern/og-util/pkg/jq"
"github.com/opengovern/og-util/pkg/opengovernance-es-sdk"
"github.com/opengovern/og-util/pkg/tasks"
"github.com/opengovern/opencomply/services/tasks/db/models"
"github.com/opengovern/opencomply/services/tasks/scheduler"
Expand Down

0 comments on commit baf48fb

Please sign in to comment.