Skip to content

Commit

Permalink
fix: update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
holyspectral committed Dec 10, 2024
1 parent aad66f3 commit 5d9abfb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Publish manifest
uses: rancher/ecm-distro-tools/actions/publish-image@master
with:
image: scanner
image: neuvector-scanner
tag: ${{ github.ref_name }}
platforms: linux/amd64,linux/arm64

Expand All @@ -50,3 +50,15 @@ jobs:
prime-repo: rancher
prime-username: ${{ env.PRIME_REGISTRY_USERNAME }}
prime-password: ${{ env.PRIME_REGISTRY_PASSWORD }}
- name: Login to registry
uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish neuvector
run: |
VERSION=${{ github.ref_name }}
docker buildx imagetools create --tag docker.io/${{ github.repository_owner }}/neuvector-scanner:6 docker.io/${{ github.repository_owner }}/neuvector-scanner:${VERSION#v}
docker buildx imagetools create --tag docker.io/${{ github.repository_owner }}/scanner:${VERSION#v} docker.io/${{ github.repository_owner }}/neuvector-scanner:${VERSION#v}
docker buildx imagetools create --tag docker.io/${{ github.repository_owner }}/scanner:6 docker.io/${{ github.repository_owner }}/neuvector-scanner:6
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,5 @@ 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) --build-arg VULNDBVER=$(VULNDBVER) --platform=$(TARGET_PLATFORMS) -t "$(REPO)/scanner:$(TAG)" --push .
--build-arg VERSION=$(VERSION) --build-arg COMMIT=$(COMMIT) --build-arg VULNDBVER=$(VULNDBVER) --platform=$(TARGET_PLATFORMS) -t "$(REPO)/neuvector-scanner:$(TAG)" --push .
@echo "Pushed $(IMAGE)"

0 comments on commit 5d9abfb

Please sign in to comment.