Compare commits

...

2 Commits

Author SHA1 Message Date
c8a34ee760
Set rust toolchain
Some checks failed
Build and deploy / Build container and manifests (push) Has been cancelled
2025-04-18 15:23:40 +02:00
a0b742b0b1
Changed syntax used in build.yaml 2025-04-18 15:08:07 +02:00
4 changed files with 8 additions and 4 deletions

2
.cargo/config.toml Normal file
View File

@ -0,0 +1,2 @@
[env]
RUSTC_BOOTSTRAP = "1"

View File

@ -79,11 +79,11 @@ jobs:
- name: Push manifests
run: |
flux push artifact oci://$OCI_REPO/manifests:${{ gitea.head_ref || gitea.ref_name }} \
flux push artifact oci://${{ env.OCI_REPO }}/manifests:${{ gitea.head_ref || gitea.ref_name }} \
--path="./manifests.yaml" \
--source="$(git config --get remote.origin.url)" \
--revision="$(git rev-parse HEAD)" \
$(echo "${{ steps.meta.outputs.labels }}" | sed -e 's/^/-a /')
flux tag artifact oci://$OCI_REPO/manifests:${{ gitea.head_ref || gitea.ref_name }} \
flux tag artifact oci://${{ env.OCI_REPO }}/manifests:${{ gitea.head_ref || gitea.ref_name }} \
$(echo "${{ steps.meta.outputs.tags }}" | sed -e 's/^.*:/--tag /')

View File

@ -16,8 +16,6 @@ RUN cargo chef cook --release --recipe-path recipe.json
COPY . .
ARG RELEASE_VERSION
ENV RELEASE_VERSION=${RELEASE_VERSION}
# HACK: Enable the use of features on stable
ENV RUSTC_BOOTSTRAP=1
RUN cargo auditable build --release
FROM gcr.io/distroless/cc-debian12:nonroot AS runtime

4
rust-toolchain.toml Normal file
View File

@ -0,0 +1,4 @@
[toolchain]
channel = "1.85"
profile = "default"
components = ["rust-analyzer"]