From 9e259b8f42dcff7c5a2fc2f40335cf7fa3219243 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 26 Nov 2024 22:48:03 -0500 Subject: [PATCH] Try reading Ruby version from .ruby-version --- .gitea/workflows/deploy.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index a84fc7f..ea2f05c 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -9,12 +9,17 @@ 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}}