Skip to content

Commit

Permalink
fix: image publish ci (#142)
Browse files Browse the repository at this point in the history
* fix: image publish ci

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: more changes

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* feat: remove debug

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

---------

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
  • Loading branch information
vishal-chdhry authored Jun 3, 2024
1 parent 43bafd0 commit eb92e87
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/actions/publish-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ runs:
env:
REGISTRY: ${{ inputs.registry }}
REPO: ${{ inputs.repository }}
REGISTRY_USERNAME: ${{ inputs.registry-username }}
REGISTRY_PASSWORD: ${{ inputs.registry-password }}
COSIGN_REPOSITORY: ${{ inputs.sbom-repository }}
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ jobs:
version: ${{ github.ref_name }}
sign-image: true
sbom-name: reports-server
sbom-repository: ghcr.io/${{ github.repository_owner }}/sbom
signature-repository: ghcr.io/${{ github.repository_owner }}/signatures
sbom-repository: ghcr.io/${{ github.repository_owner }}/reports-server/sbom
signature-repository: ghcr.io/${{ github.repository_owner }}/reports-server/signatures
main-path: .
generate-reports-server-provenance:
needs: publish-images
Expand All @@ -72,4 +72,4 @@ jobs:
digest: "${{ needs.publish-images.outputs.reports-server-digest }}"
registry-username: ${{ github.actor }}
secrets:
registry-password: ${{ secrets.GITHUB_TOKEN }}
registry-password: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,4 @@ ko-login: $(KO)
.PHONY: ko-publish-reports-server
ko-publish-reports-server: ko-login ## Build and publish reports-server image (with ko)
@LD_FLAGS=$(LD_FLAGS) KOCACHE=$(KOCACHE) KO_DOCKER_REPO=$(REPO_REPORTS_SERVER) \
$(KO) build . --bare --tags=$(KO_TAGS) --platform=$(PLATFORMS)
$(KO) build . --bare --tags=$(KO_TAGS) --platform=$(PLATFORMS)

0 comments on commit eb92e87

Please sign in to comment.