Compare commits
3 commits
421be9ab2e
...
ccfe99996f
Author | SHA1 | Date | |
---|---|---|---|
ccfe99996f | |||
6bfa4afbb6 | |||
bf67ee5bac |
1 changed files with 13 additions and 2 deletions
|
@ -10,8 +10,19 @@ jobs:
|
|||
steps:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- uses: docker/build-push-action@v6
|
||||
- name: Push image
|
||||
uses: docker/build-push-action@v6
|
||||
context:
|
||||
push: true
|
||||
tags: |
|
||||
docker.atomaka.com/budget:fake
|
||||
docker.atomaka.com/budget:latest
|
||||
docker.atomaka.com/budget:${{gitea.sha}}
|
||||
- name: Deploy to server
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
username: ${{ secrets.SSH_USERNAME }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
script: |
|
||||
docker pull docker.atomaka.com/budget:latest
|
||||
docker restart budget
|
||||
|
|
Loading…
Add table
Reference in a new issue