budget/.gitea/workflows/deploy.yaml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 22: cannot unmarshal !!map into string
Andrew Tomaka 9e259b8f42
Some checks failed
Ruby CI / test (pull_request) Failing after 2s
Try reading Ruby version from .ruby-version
2024-11-26 22:48:03 -05:00

29 lines
761 B
YAML

name: Deploy
on:
push:
tags:
- "**"
jobs:
deploy:
runs-on: cth-ubuntu-latest
steps:
- name: Read Ruby file
id: ruby
run: echo "version=$(cat .ruby-version)" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Push image
uses: docker/build-push-action@v6
with:
push: true
build-args:
RUBY_VERSION: ${{ steps.ruby.outputs.version }}
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