mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-12-22 19:57:57 +00:00
chg: Use username as a variable in Makefile
This commit is contained in:
parent
e54aa3b33b
commit
db5d1f72bd
@ -23,4 +23,3 @@ FROM scratch
|
||||
COPY --from=builder /chhoto-url/target/x86_64-unknown-linux-musl/release/chhoto-url /chhoto-url
|
||||
COPY ./resources /resources
|
||||
ENTRYPOINT ["/chhoto-url"]
|
||||
|
||||
|
5
Makefile
5
Makefile
@ -1,3 +1,5 @@
|
||||
USERNAME := ${USERNAME}
|
||||
|
||||
setup:
|
||||
cargo install cross
|
||||
docker buildx create --use --platform=linux/arm64,linux/amd64 --name multi-platform-builder
|
||||
@ -9,10 +11,9 @@ build:
|
||||
cross build --release --locked --manifest-path=actix/Cargo.toml --target x86_64-unknown-linux-musl
|
||||
|
||||
docker: build
|
||||
docker buildx build --push --tag sintan1729/chhoto-url:dev --platform linux/amd64,linux/arm64,linux/arm/v7 -f Dockerfile.multiarch .
|
||||
docker buildx build --push --tag ${USERNAME}/chhoto-url:dev --platform linux/amd64,linux/arm64,linux/arm/v7 -f Dockerfile.multiarch .
|
||||
|
||||
clean:
|
||||
cargo clean --manifest-path=actix/Cargo.toml
|
||||
rm -rf .docker
|
||||
|
||||
.PHONY: build
|
||||
|
Loading…
Reference in New Issue
Block a user