Skip to content
This repository was archived by the owner on Jul 5, 2021. It is now read-only.

Commit

Permalink
Fix deploy task
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Lars Gierth <[email protected]>
  • Loading branch information
Lars Gierth committed Jul 12, 2017
1 parent 8ae12b7 commit 4b6f2b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ deploy:
echo "- make publish-to-domain"; \

publish-to-domain: versions/current
$(PREPEND)DNSSIMPLE_TOKEN="$(shell if [ -f auth.token ]; then cat auth.token; else cat $$HOME/.protocol/dnsimple.token; fi)"; \
./dnslink.sh $(DOMAIN) $(shell cat versions/current)
DNSIMPLE_TOKEN="$(shell cat $(HOME)/.protocol/dnsimple.ipfs.io.token)" \
./dnslink.sh $(DOMAIN) $(shell cat versions/current)

clean:
$(PREPEND)[ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR) && \
Expand Down
2 changes: 1 addition & 1 deletion dnslink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RECORD_NAME="_dnslink"
RECORD_TTL=120

record_id=$(
curl -s "https://api.dnsimple.com/v1/domains/$ZONE/records?name=$RECORD_NAME&type=TXT" \
curl -v -s "https://api.dnsimple.com/v1/domains/$ZONE/records?name=$RECORD_NAME&type=TXT" \
-H "X-DNSimple-Domain-Token: $DNSIMPLE_TOKEN" \
-H "Accept: application/json" \
| jq -r '.[].record.id'
Expand Down

0 comments on commit 4b6f2b8

Please sign in to comment.