Skip to content

Commit

Permalink
Merge pull request #21 from seroanalytics/digitalocean
Browse files Browse the repository at this point in the history
also deploy to digitalocean on merge to main
  • Loading branch information
hillalex authored Nov 28, 2024
2 parents b509844 + b4435c0 commit 14b0afb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/docker.yaml → .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,23 @@ jobs:

- name: 🚢 Push image
run: ./docker/push

- id: sha
name: Setup Environment
shell: bash
run: |
if [[ -v "GITHUB_SHA" ]]; then
GIT_SHA=${GITHUB_SHA:0:7}
else
GIT_SHA=$(git rev-parse --short=7 HEAD)
fi
echo "GIT_SHA=${GIT_SHA}" >> $GITHUB_OUTPUT
- name: Deploy the app
uses: digitalocean/app_action/deploy@v2
env:
IMAGE_TAG_SEROVIZR: ${{ 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'

0 comments on commit 14b0afb

Please sign in to comment.