Try reading Ruby version from .ruby-version
Some checks failed
Ruby CI / test (pull_request) Failing after 2s
Some checks failed
Ruby CI / test (pull_request) Failing after 2s
This commit is contained in:
parent
2538335e17
commit
9e259b8f42
1 changed files with 5 additions and 0 deletions
|
@ -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}}
|
||||||
|
|
Loading…
Reference in a new issue