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
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ jobs:

make build
- name: prepare release
run: ./scripts/release/prepare-release.sh
run: echo $LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY != "" && ./scripts/release/prepare-release.sh
- name: publish
run: |
if [[ "$DRY_RUN" = true ]]; then
./scripts/release/publish-dry-run.sh
else
./scripts/release/publish.sh
echo $LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY != "" && ./scripts/release/publish.sh
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ brews:
repository:
owner: launchdarkly
name: homebrew-tap
# token: "{{ .Env.GITHUB_TOKEN }}"
git:
url: [email protected]:launchdarkly/homebrew-tap.git
private_key: "{{ .Env.LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY }}"
token: "{{ .Env.LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY }}"
# git:
# url: [email protected]:launchdarkly/homebrew-tap.git
# private_key: "{{ .Env.LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY }}"
directory: Formula
url_template: "https://github.com/launchdarkly/ld-find-code-refs/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
install: |
Expand Down
1 change: 1 addition & 0 deletions .ldrelease/publish.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

echo "brew deploy key is set: " && echo $LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY != ""
# the "publish" makefile target pushes the image to Docker
$(dirname $0)/run-publish-target.sh publish

Expand Down
1 change: 1 addition & 0 deletions .ldrelease/run-publish-target.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ cat "${LD_RELEASE_SECRETS_DIR}/docker_token" | sudo docker login --username "${d
# Set github token to be used in releaser
GITHUB_TOKEN=$(cat ${LD_RELEASE_SECRETS_DIR}/github_token)

echo "brew deploy key is set: " && echo $LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY != ""
sudo PATH=${PATH} GITHUB_TOKEN=${GITHUB_TOKEN} LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY=${LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY} make $TARGET

# Goreleaser puts all the artifacts in ./dist - copying them to $LD_RELEASE_ARTIFACTS_DIR
Expand Down
Loading