Created
August 29, 2017 09:56
-
-
Save danharper83/b008acf99f88e09b9ac75397765534e3 to your computer and use it in GitHub Desktop.
Creates a snapshot on platform using platform commands
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
#!/usr/bin/env bash | |
ORIGIN="develop" | |
TARGET="master" | |
if [ "$PLATFORM_BRANCH" = "$ORIGIN" ]; then | |
/app/.platformsh/bin/platform self-update -y -q | |
/app/.platformsh/bin/platform backup -y -q -p $PLATFORM_PROJECT -e $TARGET | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment