Skip to content

Instantly share code, notes, and snippets.

View kevholditch's full-sized avatar
💭
Eat sleep code repeat

Kevin Holditch kevholditch

💭
Eat sleep code repeat
View GitHub Profile
aws sns publish --topic-arn arn:aws:sns:us-east-1:1465414804035:test1 --endpoint-url http://localhost:9911 --message "hello"
services:
sns:
image: s12v/sns
ports:
- "9911:9911"
volumes:
- ./config:/etc/sns
depends_on:
- sqs
sqs:
if [ "$GITHUB_TOKEN" = "" ]; then
echo "you need to create a github token with access to kevholditch/demo to run this build see https://github.com/settings/tokens/new"
exit -1
fi
docker build --build-arg "GITHUB_TOKEN=$GITHUB_TOKEN" -t kevholditch/demo .
ARG GITHUB_TOKEN
ENV REPO "kevholditch/demo"
ENV FILE "demo_0.0.1_linux_amd64.tar.gz"
ENV VERSION "v0.0.1"
wget -q --auth-no-challenge --header='Accept:application/octet-stream' \
https://$GITHUB_TOKEN:@api.github.com/repos/$REPO/releases/assets/`curl -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3.raw" -s https://api.github.com/repos/$REPO/releases | jq ". | map(select(.tag_name == \"$VERSION\"))[0].assets | map(select(.name == \"$FILE\"))[0].id"` \
-O /tmp/$FILE
#!/usr/bin/env bash
set -e
GITHUB_TOKEN=<my_token>
REPO="kevholditch/demo"
FILE="demo_0.0.1_linux_amd64.tar.gz"
VERSION="v0.0.1"
wget -q --auth-no-challenge --header='Accept:application/octet-stream' \
https://$GITHUB_TOKEN:@api.github.com/repos/$REPO/releases/assets/`curl -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3.raw" -s https://api.github.com/repos/$REPO/releases | jq ". | map(select(.tag_name == \"$VERSION\"))[0].assets | map(select(.name == \"$FILE\"))[0].id"` \
Running build script...
Module directory does not exist.
Analyzing build script...
Analyzing C:/Projects/cake/build.cake...
Analyzing C:/Projects/cake/build/parameters.cake...
Analyzing C:/Projects/cake/build/paths.cake...
Analyzing C:/Projects/cake/build/packages.cake...
Analyzing C:/Projects/cake/build/version.cake...
Analyzing C:/Projects/cake/build/credentials.cake...
Processing build script...