Skip to content

Commit

Permalink
chore: update dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Brad McCoy <bradmccoydev@gmail.com>
  • Loading branch information
bradmccoydev committed May 27, 2023
1 parent 2286419 commit c68c4cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ jobs:
id: docker_build_image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # v4
with:
sbom: true
provenance: true
push: true
builder: ${{ steps.buildx.outputs.name }}
context: .
Expand All @@ -81,8 +79,10 @@ jobs:
COSIGN_PASSWORD: ${{secrets.COSIGN_PASSWORD}}
COSIGN_KEY: ${{secrets.COSIGN_PRIVATE_KEY}}
run: |
cosign sign ghcr.io/bradmccoydev/cdevents-controller:latest --yes
cosign sign ghcr.io/bradmccoydev/cdevents-controller:${{ steps.prep.outputs.VERSION }} --yes
# - name: Generate SBOM
# uses: anchore/sbom-action@4d571ad1038a9cc29d676154ef265ab8f9027042 # v0.14.2
# with:
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ LABEL org.opencontainers.image.source="https://github.com/bradmccoydev/cdevents-
org.opencontainers.image.url="https://avatars.githubusercontent.com/u/91484128?s=200&v=4" \
org.opencontainers.image.title="CDEvents Github Controller" \
org.opencontainers.image.vendor='bradmccoydev' \
org.opencontainers.image.licenses='Apache-2.0'
org.opencontainers.image.licenses='Apache-2.0' \
org.opencontainers.image.description='CDEvents Controller'

WORKDIR /
COPY --from=builder /workspace/cdevents-controller .
COPY --from=builder /workspace/cdeventscli .
COPY --from=builder /workspace/cdeventscli /usr/local/bin/cdeventscli
COPY ./ui ./ui
USER 65532:65532

ENTRYPOINT ["/cdevents-controller"]

0 comments on commit c68c4cf

Please sign in to comment.