forked from vhaudiquet/rhema-together
build: depend on the Rhema crates by version
The manifest pointed at `../rhema`, so a build needed that checkout beside the repository. CI cloned it in two jobs and the Dockerfile cloned a tag and rewrote the paths. The committed lock had drifted to 0.5.1 entries after the framework bumped to 0.5.2, so the first cargo command in a clean tree rewrote it. All twelve crates are on crates.io at 0.5.2, so the manifest names that version and the lock pins it. The clone steps, the `RHEMA_REF` argument, and the path rewrite are gone from the workflows and the image. Moving the framework now means `cargo update` on the `rhema-*` packages.
This commit is contained in:
1 parent
89aca58364
commit
b5babb682e
8 files changed
+103
-69
No files matched your search
+1
-12
@@ -11,7 +11,6 @@ permissions:
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
OWNER: vhaudiquet
|
||||
RHEMA_REF: v0.5.1
|
||||
|
||||
jobs:
|
||||
checks:
|
||||
@@ -19,11 +18,6 @@ jobs:
|
||||
steps:
|
||||
- uses: https://gitea.com/actions/checkout@v4
|
||||
|
||||
# The server consumes the framework by path. The image pins the
|
||||
# same tag; the checks need a checkout at the same place.
|
||||
- name: Clone the Rhema framework
|
||||
run: git clone --depth 1 --branch "$RHEMA_REF" https://github.com/vhaudiquet/rhema.git ../rhema
|
||||
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
|
||||
- name: Install native build dependencies
|
||||
@@ -40,9 +34,6 @@ jobs:
|
||||
steps:
|
||||
- uses: https://gitea.com/actions/checkout@v4
|
||||
|
||||
- name: Clone the Rhema framework
|
||||
run: git clone --depth 1 --branch "$RHEMA_REF" https://github.com/vhaudiquet/rhema.git ../rhema
|
||||
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
|
||||
- name: Install native build dependencies
|
||||
@@ -130,7 +121,7 @@ jobs:
|
||||
- uses: https://gitea.com/actions/checkout@v4
|
||||
|
||||
- name: Build image
|
||||
run: docker build --build-arg RHEMA_REF="$RHEMA_REF" -t rhema-together:ci .
|
||||
run: docker build -t rhema-together:ci .
|
||||
|
||||
- name: Smoke test
|
||||
run: |
|
||||
@@ -190,8 +181,6 @@ jobs:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
push: true
|
||||
build-args: |
|
||||
RHEMA_REF=${{ env.RHEMA_REF }}
|
||||
tags: |
|
||||
git.vhaudiquet.fr/${{ env.OWNER }}/rhema-together:latest
|
||||
git.vhaudiquet.fr/${{ env.OWNER }}/rhema-together:${{ gitea.sha }}
|
||||
|
||||
@@ -16,7 +16,6 @@ permissions:
|
||||
env:
|
||||
REGISTRY: git.vhaudiquet.fr
|
||||
OWNER: vhaudiquet
|
||||
RHEMA_REF: v0.5.1
|
||||
|
||||
jobs:
|
||||
verify-tag:
|
||||
@@ -59,8 +58,6 @@ jobs:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
push: true
|
||||
build-args: |
|
||||
RHEMA_REF=${{ env.RHEMA_REF }}
|
||||
tags: |
|
||||
git.vhaudiquet.fr/${{ env.OWNER }}/rhema-together:${{ steps.ver.outputs.version }}
|
||||
git.vhaudiquet.fr/${{ env.OWNER }}/rhema-together:stable
|
||||
|
||||
Reference in new issue
Block a user