Add support for anchoring structure timers (#989) #273
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
name: deploy to production | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Deploy to production | |
runs-on: ubuntu-latest | |
steps: | |
- name: executing remote ssh commands using password | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.UBUNTU_HOST }} | |
username: ${{ secrets.UBUNTU_USERNAME }} | |
password: ${{ secrets.UBUNTU_PASSWORD }} | |
script: cd /home/minmatar/minmatar.org && df -h . && git pull && docker-compose -f docker-compose-prod.yml up -d --build && docker image prune -a -f | |
notify-discord-failure: | |
name: Notify Discord Failure | |
runs-on: ubuntu-latest | |
needs: build | |
if: ${{ failure() }} | |
steps: | |
- name: Notify Discord | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
uses: Ilshidur/action-discord@master | |
with: | |
args: "New release has failed to deploy! 😢" | |
notify-discord-success: | |
name: Notify Discord Success | |
runs-on: ubuntu-latest | |
needs: build | |
if: ${{ success() }} | |
steps: | |
- name: Notify Discord Success | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
uses: Ilshidur/action-discord@master | |
with: | |
args: "New release has been successfully deployed! 🚀" |