Skip to content

Commit

Permalink
Switch production builds to master
Browse files Browse the repository at this point in the history
  • Loading branch information
Chalarangelo committed Jan 18, 2025
1 parent 2e616e9 commit ad6fb27
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bin/deploy
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#!/bin/bash
deploy_branch() {
curl -X POST -d {} "${DEPLOY_URL}?trigger_title='[$(date +%Y.%m.%d_%H:%M)] Deployment/${DEPLOY_TRIGGER}'&trigger_branch=${1}" > /dev/null 2>&1
curl -X POST -d {} \
--data-urlencode "trigger_title=[`date +%Y.%m.%d_%H:%M`] Deployment: ${DEPLOY_TRIGGER}" \
--data-urlencode "trigger_branch=${1}" \
${DEPLOY_URL} > /dev/null 2>&1
}

deploy_production() {
echo "Deploying in 'production' branch..."
if deploy_branch "production" ; then
echo "Deploying from 'master' branch..."
if deploy_branch "master" ; then
echo "Deployment successfull"
else
echo "Deployment failed"
Expand Down

0 comments on commit ad6fb27

Please sign in to comment.