24 lines
576 B
YAML
24 lines
576 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "**"
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: cth-ubuntu-latest
|
|
steps:
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: Push image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
push: true
|
|
tags: |
|
|
docker.atomaka.com/budget:latest
|
|
docker.atomaka.com/budget:${{gitea.sha}}
|
|
- name: Deploy to server
|
|
run: |
|
|
curl --oauth2-bearer ${{ secrets.WATCHTOWER_TOKEN }} \
|
|
${{ secrets.WATCHTOWER_HOST }}/v1/update?images=docker.atomaka.com/budget
|