Skip to content

Commit

Permalink
use dockers field in goreleaser (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
maditya authored Nov 7, 2023
1 parent e8103dd commit 4e6671f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ jobs:
with:
cosign-release: 'v2.2.0' # optional
- uses: anchore/sbom-action/download-syft@78fc58e266e87a38d4194b2137a3d4e9bcaf7ca1 # v0.14.3
- name: Login to GitHub Container Registry
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
with:
version: latest
Expand Down
20 changes: 8 additions & 12 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,14 @@ builds:
goos:
- linux
goarch:
- amd64

kos:
- repository: ghcr.io/theparanoids/crypki
base_image: cgr.dev/chainguard/busybox
tags:
- '{{.Version}}'
- latest
bare: true
preserve_import_paths: false
platforms:
- linux/amd64
- amd64

dockers:
- image_templates:
- "ghcr.io/theparanoids/{{ .ProjectName }}:latest"
- "ghcr.io/theparanoids/{{ .ProjectName }}:{{ .Version }}"
- "ghcr.io/theparanoids/{{ .ProjectName }}:{{ .ShortCommit }}"
dockerfile: Dockerfile

signs:
- cmd: cosign
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright 2023 Yahoo Inc.
# Licensed under the terms of the Apache License 2.0. Please see LICENSE file in project root for terms.
FROM cgr.dev/chainguard/busybox:latest
ENTRYPOINT ["/usr/bin/crypki"]
COPY crypki /usr/bin

0 comments on commit 4e6671f

Please sign in to comment.