Skip to content

Commit

Permalink
build.yml: Minor refine
Browse files Browse the repository at this point in the history
  • Loading branch information
leiless committed Mar 25, 2021
1 parent fcc7963 commit 77dc7ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,6 @@ jobs:
xcode-select -p
xcodebuild -version
# BSD sed sucks!
brew install gnu-sed
DNSREDIR_DIR=$PWD
REPO_ADDR=$(git remote get-url origin | sed -e 's/^https:\/\///' -e 's/\.git//')
HEAD_COMMIT=$(git describe --dirty --always)
Expand All @@ -227,6 +224,9 @@ jobs:
# Link leiless/dnsredir to latest master tree.
ln -s $DNSREDIR_DIR ~/go/pkg/mod/github.com/leiless/dnsredir@$DNSREDIR_TAG
# BSD sed sucks!
brew install gnu-sed
pushd $COREDNS_DIR
gsed -i "s|forward:forward|dnsredir:$REPO_ADDR\nforward:forward|g" plugin.cfg
gsed -i "s|GITCOMMIT:=|CUSTOM_FLAGS=-X $REPO_ADDR.pluginVersion=$DNSREDIR_TAG -X $REPO_ADDR.pluginHeadCommit=$HEAD_COMMIT\nGITCOMMIT:=|g" Makefile
Expand Down

0 comments on commit 77dc7ab

Please sign in to comment.