Skip to content

Commit

Permalink
release(prod): fix the missing line break escape
Browse files Browse the repository at this point in the history
  • Loading branch information
iulianbarbu committed May 22, 2023
1 parent 6c1de7e commit 1dde7b7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 23 deletions.
1 change: 1 addition & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ COPY --from=cache /build/ /usr/src/shuttle/
FROM shuttle-common
ARG folder
ARG prepare_args
ARG PROD
COPY ${folder}/prepare.sh /prepare.sh
RUN /prepare.sh "${prepare_args}"
ARG CARGO_PROFILE
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ shuttle-%: ${SRC} Cargo.lock
--build-arg PROTOC_ARCH=$(PROTOC_ARCH) \
--build-arg folder=$(*) \
--build-arg prepare_args=$(PREPARE_ARGS) \
--build-arg PROD=$(PROD) \
--build-arg RUSTUP_TOOLCHAIN=$(RUSTUP_TOOLCHAIN) \
--build-arg CARGO_PROFILE=$(CARGO_PROFILE) \
--tag $(CONTAINER_REGISTRY)/$(*):$(COMMIT_SHA) \
Expand Down
50 changes: 27 additions & 23 deletions deployer/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,33 @@
###############################################################################

# Patch crates to be on same versions
mkdir -p $CARGO_HOME; \
echo '[patch.crates-io]
shuttle-service = { path = "/usr/src/shuttle/service" }
shuttle-runtime = { path = "/usr/src/shuttle/runtime" }
shuttle-aws-rds = { path = "/usr/src/shuttle/resources/aws-rds" }
shuttle-persist = { path = "/usr/src/shuttle/resources/persist" }
shuttle-shared-db = { path = "/usr/src/shuttle/resources/shared-db" }
shuttle-secrets = { path = "/usr/src/shuttle/resources/secrets" }
shuttle-static-folder = { path = "/usr/src/shuttle/resources/static-folder" }
shuttle-axum = { path = "/usr/src/shuttle/services/shuttle-axum" }
shuttle-actix-web = { path = "/usr/src/shuttle/services/shuttle-actix-web" }
shuttle-next = { path = "/usr/src/shuttle/services/shuttle-next" }
shuttle-poem = { path = "/usr/src/shuttle/services/shuttle-poem" }
shuttle-poise = { path = "/usr/src/shuttle/services/shuttle-poise" }
shuttle-rocket = { path = "/usr/src/shuttle/services/shuttle-rocket" }
shuttle-salvo = { path = "/usr/src/shuttle/services/shuttle-salvo" }
shuttle-serenity = { path = "/usr/src/shuttle/services/shuttle-serenity" }
shuttle-thruster = { path = "/usr/src/shuttle/services/shuttle-thruster" }
shuttle-tide = { path = "/usr/src/shuttle/services/shuttle-tide" }
shuttle-tower = { path = "/usr/src/shuttle/services/shuttle-tower" }
shuttle-warp = { path = "/usr/src/shuttle/services/shuttle-warp" }' > $CARGO_HOME/config.toml
mkdir -p $CARGO_HOME
if [[ $PROD != "true" ]]; then
echo '[patch.crates-io]
shuttle-service = { path = "/usr/src/shuttle/service" }
shuttle-runtime = { path = "/usr/src/shuttle/runtime" }
shuttle-aws-rds = { path = "/usr/src/shuttle/resources/aws-rds" }
shuttle-persist = { path = "/usr/src/shuttle/resources/persist" }
shuttle-shared-db = { path = "/usr/src/shuttle/resources/shared-db" }
shuttle-secrets = { path = "/usr/src/shuttle/resources/secrets" }
shuttle-static-folder = { path = "/usr/src/shuttle/resources/static-folder" }
shuttle-axum = { path = "/usr/src/shuttle/services/shuttle-axum" }
shuttle-actix-web = { path = "/usr/src/shuttle/services/shuttle-actix-web" }
shuttle-next = { path = "/usr/src/shuttle/services/shuttle-next" }
shuttle-poem = { path = "/usr/src/shuttle/services/shuttle-poem" }
shuttle-poise = { path = "/usr/src/shuttle/services/shuttle-poise" }
shuttle-rocket = { path = "/usr/src/shuttle/services/shuttle-rocket" }
shuttle-salvo = { path = "/usr/src/shuttle/services/shuttle-salvo" }
shuttle-serenity = { path = "/usr/src/shuttle/services/shuttle-serenity" }
shuttle-thruster = { path = "/usr/src/shuttle/services/shuttle-thruster" }
shuttle-tide = { path = "/usr/src/shuttle/services/shuttle-tide" }
shuttle-tower = { path = "/usr/src/shuttle/services/shuttle-tower" }
shuttle-warp = { path = "/usr/src/shuttle/services/shuttle-warp" }' > $CARGO_HOME/config.toml
else
touch $CARGO_HOME/config.toml
fi

# Add the wasm32-wasi target
rustup target add wasm32-wasi
Expand Down

0 comments on commit 1dde7b7

Please sign in to comment.