From 11fee65354e2d787fcc1786d1d802f3d339a7e21 Mon Sep 17 00:00:00 2001 From: itzaname Date: Thu, 4 Jul 2024 18:31:06 -0400 Subject: [PATCH 1/2] Update for ci build --- .drone.yml | 24 ++++++++++++++++++++++++ Containerfile | 6 +++--- 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..f6e4aa2 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,24 @@ +--- +kind: pipeline +type: docker + +platform: + os: linux + arch: amd64 + +steps: + - name: image + image: plugins/docker + settings: + registry: git.itzana.me + repo: git.itzana.me/strafesnet/asset-tool + tags: + - latest + username: + from_secret: GIT_USER + password: + from_secret: GIT_PASS + dockerfile: Containerfile + when: + branch: + - master \ No newline at end of file diff --git a/Containerfile b/Containerfile index 216b638..aa1cb3e 100644 --- a/Containerfile +++ b/Containerfile @@ -1,6 +1,6 @@ # Using the `rust-musl-builder` as base image, instead of # the official Rust toolchain -FROM clux/muslrust:stable AS chef +FROM docker.io/clux/muslrust:stable AS chef USER root RUN cargo install cargo-chef WORKDIR /app @@ -16,8 +16,8 @@ RUN cargo chef cook --release --target x86_64-unknown-linux-musl --recipe-path r COPY . . RUN cargo build --release --target x86_64-unknown-linux-musl --bin asset-tool -FROM alpine AS runtime +FROM docker.io/alpine:latest AS runtime RUN addgroup -S myuser && adduser -S myuser -G myuser COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/asset-tool /usr/local/bin/ USER myuser -CMD ["/usr/local/bin/asset-tool"] \ No newline at end of file +ENTRYPOINT ["/usr/local/bin/asset-tool"] \ No newline at end of file From 9c862717a537fa21a48ee28e36230f923e3b2345 Mon Sep 17 00:00:00 2001 From: itzaname Date: Thu, 4 Jul 2024 18:33:41 -0400 Subject: [PATCH 2/2] Add build status --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index fc4af71..dfab648 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # asset-tool +[![Build Status](https://ci.itzana.me/api/badges/StrafesNET/asset-tool/status.svg?ref=refs/heads/master)](https://ci.itzana.me/StrafesNET/asset-tool) + For uploading and downloading roblox assets. \ No newline at end of file