Skip to content

Commit

Permalink
feat: NVSHAS-9502 create standalone Dockerfile
Browse files Browse the repository at this point in the history
1. Provide cross platform/standalone Dockerfile
2. Release.yml to publish SLSA-capable artifacts
3. Provide build target, test-image, build-image and push-image to sync
   with rancher.
4. Upgrade to BCI 15.6
  • Loading branch information
holyspectral committed Dec 11, 2024
1 parent 4fd1006 commit e1f21c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
with:
push-to-public: true
push-to-prime: false
make-target: push-image
image: prometheus-exporter
tag: ${{ env.TAG }}
platforms: linux/amd64,linux/arm64
Expand All @@ -51,6 +52,7 @@ jobs:
with:
push-to-public: false
push-to-prime: true
make-target: push-rancher-image
image: neuvector-prometheus-exporter
tag: ${{ env.TAG }}
platforms: linux/amd64,linux/arm64
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ build-image: buildx-machine ## build (and load) the container image targeting th


push-image: buildx-machine
$(IMAGE_BUILDER) build -f package/Dockerfile \
--builder $(MACHINE) $(IMAGE_ARGS) $(IID_FILE_FLAG) $(BUILDX_ARGS) \
--build-arg VERSION=$(VERSION) --build-arg COMMIT=$(COMMIT) --platform=$(TARGET_PLATFORMS) -t "$(REPO)/prometheus-exporter:$(TAG)" --push .
@echo "Pushed $(IMAGE)"

push-rancher-image: buildx-machine
$(IMAGE_BUILDER) build -f package/Dockerfile \
--builder $(MACHINE) $(IMAGE_ARGS) $(IID_FILE_FLAG) $(BUILDX_ARGS) \
--build-arg VERSION=$(VERSION) --build-arg COMMIT=$(COMMIT) --platform=$(TARGET_PLATFORMS) -t "$(REPO)/neuvector-prometheus-exporter:$(TAG)" --push .
Expand Down

0 comments on commit e1f21c9

Please sign in to comment.