Attempt to fix build with ignore rules
Some checks failed
Build and Publish / Build and Test (push) Failing after 11m55s

This commit is contained in:
Joshua Coles 2024-09-08 17:51:49 +01:00
parent 4b2f0f3bf7
commit 35fd2b90d2
3 changed files with 5 additions and 4 deletions

View File

@ -28,6 +28,7 @@
**/values.dev.yaml
/bin
/target
!/target/**/monzo-ingestion
/.idea
LICENSE
README.md

View File

@ -78,9 +78,9 @@ jobs:
target/release/${{ env.RUST_BINARY_NAME }}
target/aarch64-unknown-linux-musl/release/${{ env.RUST_BINARY_NAME }}
# The target directory is kept in the .dockerignore file, so allow these to be copied in we need to move them to a
# new directory.
- run: mv target docker-binaries
# # The target directory is kept in the .dockerignore file, so allow these to be copied in we need to move them to a
# # new directory.
# - run: mv target docker-binaries
- name: Build and push multi-arch Docker image
uses: docker/build-push-action@v4

View File

@ -2,7 +2,7 @@ FROM --platform=$BUILDPLATFORM debian:bullseye-slim AS builder
ARG TARGETPLATFORM
ARG BINARY_NAME
WORKDIR /app
COPY . .
COPY /target /app/target
RUN case "$TARGETPLATFORM" in \
"linux/amd64") BINARY_PATH="target/release/${BINARY_NAME}" ;; \
"linux/arm64") BINARY_PATH="target/aarch64-unknown-linux-gnu/release/${BINARY_NAME}" ;; \