Try reading Ruby version from .ruby-version
Some checks failed
Ruby CI / test (pull_request) Failing after 2s

This commit is contained in:
Andrew Tomaka 2024-11-26 22:48:03 -05:00
parent 2538335e17
commit 9e259b8f42
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE

View file

@ -9,12 +9,17 @@ jobs:
deploy: deploy:
runs-on: cth-ubuntu-latest runs-on: cth-ubuntu-latest
steps: steps:
- name: Read Ruby file
id: ruby
run: echo "version=$(cat .ruby-version)" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Push image - name: Push image
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
push: true push: true
build-args:
RUBY_VERSION: ${{ steps.ruby.outputs.version }}
tags: | tags: |
docker.atomaka.com/budget:latest docker.atomaka.com/budget:latest
docker.atomaka.com/budget:${{gitea.sha}} docker.atomaka.com/budget:${{gitea.sha}}