Skip to content

Commit

Permalink
only run deploy on merge to main
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Nov 28, 2024
1 parent e37c4a9 commit aa0aa1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,11 @@ jobs:
fi
echo "GIT_SHA=${GIT_SHA}" >> $GITHUB_OUTPUT
- name: Check sha
run: echo ${{ steps.sha.outputs.GIT_SHA }}

- name: Deploy the app
uses: digitalocean/app_action/deploy@v2
env:
IMAGE_TAG_SEROVIZ: ${{ steps.sha.outputs.GIT_SHA }}
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
app_name: seroviz
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
4 changes: 2 additions & 2 deletions scripts/push
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e
HERE=$(dirname $0)
. $HERE/common

#sif [[ "$GIT_BRANCH" == "main" ]]; then
if [[ "$GIT_BRANCH" == "main" ]]; then
docker push $DOCKER_BRANCH_TAG
docker push $DOCKER_COMMIT_TAG
#fi
fi

0 comments on commit aa0aa1d

Please sign in to comment.