Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
deploy-to-hub:
steps:
- script:
name: import application slug
code: |-
herokuish slug import < $WERCKER_SOURCE_DIR/slug.tgz
- script:
name: re-create application user
code: |-
useradd -u $(stat -c %u /app) zabka
- script:
name: remove symfony cache
code: |-
rm -fr /app/app/config/parameters.yml /app/var/cache/*
- internal/docker-push:
username: $DOCKER_HUB_USERNAME
password: $DOCKER_HUB_PASSWORD
ports: "5000"
tag: $WERCKER_GIT_BRANCH
working-dir: "/app"
env: "PORT=5000"
cmd: "/start release"
repository: $DOCKER_HUB_REPOSITORY
box: gliderlabs/herokuish
build:
steps:
- script:
name: setup cache
code: |-
# ensure buildpack results are cached:
export CACHE_PATH=$WERCKER_CACHE_DIR
- script:
name: buildstep
code: |-
rsync -a "$WERCKER_SOURCE_DIR/" /app/
herokuish paths
env SYMFONY_ENV=prod herokuish buildpack build | sed "s/\x1B\[1G//g"
- script:
name: export application slug
code: |-
herokuish slug generate
herokuish slug export > $WERCKER_OUTPUT_DIR/slug.tgz
after-steps:
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
branches: master
notify_on: failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.