Last active
September 8, 2016 17:15
-
-
Save mlebkowski/f261481dbfafb1354d41c44a68830c73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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