Skip to content

Commit

Permalink
try update tag
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Nov 28, 2024
1 parent 5282684 commit 3705ba9
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,22 @@ jobs:
- name: 🚢 Push image
run: ./scripts/push

- name: Install doctl
uses: digitalocean/action-doctl@v2
- id: sha
name: Setup Environment
shell: bash
run: |
if [ "${{github.event_name}}" = "pull_request" ];
then
long_sha=${{ github.event.pull_request.head.sha }}
else
long_sha=${GITHUB_SHA}
fi
echo "GIT_SHA=${long_sha:0:7}" >> $GITHUB_OUTPUT
- name: Deploy the app
uses: digitalocean/app_actions/deploy@v2
env:
IMAGE_TAG_SEROVIZ: ${{ steps.sha.outputs.GIT_SHA }}
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

- name: Deploy
run: doctl apps create-deployment ${{ secrets.DIGITALOCEAN_APP_ID }} --force-rebuild=true
app_name: seroviz

0 comments on commit 3705ba9

Please sign in to comment.