mirror of
https://github.com/GothenburgBitFactory/taskchampion-sync-server.git
synced 2025-06-26 10:54:29 +02:00
Read versions from .env file
This commit is contained in:
parent
41f3e87bdf
commit
3c671da68c
3 changed files with 11 additions and 1 deletions
3
.env
Normal file
3
.env
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Versions must be major.minor
|
||||||
|
ALPINE_VERSION=3.19
|
||||||
|
RUST_VERSION=1.77
|
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -19,10 +19,12 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
- name: Load .env file
|
||||||
|
uses: xom9ikk/dotenv@v2
|
||||||
- name: Setup Rust toolchain
|
- name: Setup Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
toolchain: 1.77
|
toolchain: ${{ env.RUST_VERSION }}
|
||||||
targets: ${{ matrix.target.target }}
|
targets: ${{ matrix.target.target }}
|
||||||
- name: Test
|
- name: Test
|
||||||
if: ${{ matrix.target.test }}
|
if: ${{ matrix.target.test }}
|
||||||
|
|
5
.github/workflows/docker.yml
vendored
5
.github/workflows/docker.yml
vendored
|
@ -13,6 +13,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
- name: Load .env file
|
||||||
|
uses: xom9ikk/dotenv@v2
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
|
@ -42,3 +44,6 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=${{ env.ALPINE_VERSION }}
|
||||||
|
RUST_VERSION=${{ env.RUST_VERSION }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue