Setup deploy
This commit is contained in:
parent
3e3dbc2555
commit
8553ac1d9f
1 changed files with 32 additions and 0 deletions
32
.gitea/workflows/deploy.yaml
Normal file
32
.gitea/workflows/deploy.yaml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
name: Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: cth-ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: 3.1.2
|
||||||
|
- run: |
|
||||||
|
gem install bundler
|
||||||
|
bundle install
|
||||||
|
bundle exec jekyll build
|
||||||
|
- 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/atomaka.com:latest
|
||||||
|
docker.atomaka.com/atomaka.com:${{gitea.ref_name}}
|
||||||
|
- name: Deploy to server
|
||||||
|
run: |
|
||||||
|
curl --oauth2-bearer ${{ secrets.WATCHTOWER_TOKEN }} \
|
||||||
|
${{ secrets.WATCHTOWER_HOST }}/v1/update?images=docker.atomaka.com/atomaka.com
|
Loading…
Reference in a new issue