Attempt to fix build with ignore rules
Some checks failed
Build and Publish / Build and Test (push) Failing after 11m55s
Some checks failed
Build and Publish / Build and Test (push) Failing after 11m55s
This commit is contained in:
parent
4b2f0f3bf7
commit
35fd2b90d2
@ -28,6 +28,7 @@
|
||||
**/values.dev.yaml
|
||||
/bin
|
||||
/target
|
||||
!/target/**/monzo-ingestion
|
||||
/.idea
|
||||
LICENSE
|
||||
README.md
|
||||
|
||||
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -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
|
||||
|
||||
@ -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}" ;; \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user