Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
with:
path: ./src/github.com/${{ github.repository }}
- name: GoReleaser Check
uses: goreleaser/goreleaser-action@v6
uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3
with:
version: latest
args: check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
path: ./src/github.com/${{ github.repository }}
- name: GoReleaser Action
uses: goreleaser/goreleaser-action@v6
uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3
with:
version: latest
args: release --snapshot --skip=publish,sign
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
ref: "master"
# include tags so we can determine new version
fetch-depth: 0
- name: Set up Docker Buildx
# dockers_v2 builds via `docker buildx build`; goreleaser expects the
# docker-container driver, which this action configures by default
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
- name: Update alpine image
run: docker pull alpine
- name: Install Doppler CLI
Expand Down
65 changes: 38 additions & 27 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,45 +105,56 @@ changelog:
- Merge pull request
- Merge branch

dockers:
dockers_v2:
- dockerfile: docker/alpine
goos: linux
goarch: amd64
ids:
- doppler
image_templates:
- "dopplerhq/cli:{{ .Version }}" # Ex: 1.4.2
- "dopplerhq/cli:{{ .Major }}.{{ .Minor }}" # Ex: 1.4
- "dopplerhq/cli:{{ .Major }}" # Ex: 1
- "dopplerhq/cli:latest"
- "gcr.io/dopplerhq/cli:{{ .Version }}" # Ex: 1.4.2
- "gcr.io/dopplerhq/cli:{{ .Major }}.{{ .Minor }}" # Ex: 1.4
- "gcr.io/dopplerhq/cli:{{ .Major }}" # Ex: 1
- "gcr.io/dopplerhq/cli:latest"
build_flag_templates:
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.version={{.Version}}"
- "--label=org.label-schema.name={{.ProjectName}}"
- "--platform=linux/amd64"

brews:
platforms:
- linux/amd64
images:
- dopplerhq/cli
- gcr.io/dopplerhq/cli
tags:
- "{{ .Version }}" # Ex: 1.4.2
- "{{ .Major }}.{{ .Minor }}" # Ex: 1.4
- "{{ .Major }}" # Ex: 1
- "latest"
labels:
org.label-schema.schema-version: "1.0"
org.label-schema.version: "{{ .Version }}"
org.label-schema.name: "{{ .ProjectName }}"
sbom: false
flags:
- "--provenance=false"

homebrew_casks:
- name: doppler
repository:
owner: DopplerHQ
name: homebrew-doppler
commit_author:
name: "Doppler Bot"
email: bot@doppler.com
directory: Formula
homepage: "https://doppler.com"
Comment thread
watsonian marked this conversation as resolved.
description: "The official Doppler CLI for managing your secrets"
install: |-
bin.install "doppler"
bash_completion.install "completions/doppler.bash" => "doppler"
zsh_completion.install "completions/doppler.zsh" => "_doppler"
fish_completion.install "completions/doppler.fish"
test: |
system "#{bin}/doppler --version"
# homepage (doppler.com) differs from the release download domain
# (github.com), so mark the URL verified to satisfy `brew audit`
url:
verified: github.com/DopplerHQ/cli
binaries:
- doppler
completions:
bash: completions/doppler.bash
zsh: completions/doppler.zsh
fish: completions/doppler.fish
# binaries are GPG-signed but not Apple-notarized, so strip the Gatekeeper
# quarantine attribute on macOS to keep `brew install` working
hooks:
post:
install: |
if OS.mac?
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/doppler"]
end

scoops:
- repository:
Expand Down
4 changes: 3 additions & 1 deletion docker/alpine
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ RUN apk add --no-cache tini
# Update OpenSSL to address CVE because `alpine` isn't updated yet
RUN apk update && apk upgrade --no-cache libcrypto3 libssl3

COPY doppler /bin/doppler
# dockers_v2 stages artifacts under $TARGETPLATFORM/ in the build context
ARG TARGETPLATFORM
COPY $TARGETPLATFORM/doppler /bin/doppler
ENTRYPOINT ["/sbin/tini", "--", "/bin/doppler"]
Loading