Skip to content

Commit

Permalink
Auto-deploy lb_bean_bot on release (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaBernstein authored Sep 10, 2022
1 parent 48a5435 commit 4325466
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,19 @@ jobs:
docker push ${{ env.IMAGE_NAME }}:${GITHUB_REF##*/}
# Only push 'release' if REF startsWith 'v'
[[ ${GITHUB_REF##*/} = v* ]] && docker push ${{ env.IMAGE_NAME }}:release || echo "Not a release tag"
deploy:
runs-on: ubuntu-latest
needs: build
if: github.event_name != 'pull_request'
steps:
- name: Deploy lb_bean_bot
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USERNAME }}
key: ${{ secrets.DEPLOY_KEY_PRIV }}
# Key creation:
# ssh-keygen -t ed25519 -C gh_docker_deploy_beancount_bot
# In authorized_keys:
# command="/home/admin/docker-compose-recipes/_s2/beancount-tg/update.sh prod" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAxWEI6q0z1rb9xHGlHs6Bj1kFyRQXuhi+XdAfj0zRgA gh_docker_deploy_beancount_bot

0 comments on commit 4325466

Please sign in to comment.