diff --git a/Jenkinsfile b/Jenkinsfile index 64762fc..33f645b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,8 +4,9 @@ def pipeline = new org.rust.AppPipeline(steps: this, initSubmodules: true, envImageName: 'docker.soramitsu.co.jp/sora2/env:rust-1.73.0', appImageName: 'docker.soramitsu.co.jp/sora2/bridge-relayer', - pushTags: [:], + pushTags: ['master':'latest'], buildTestCmds: ['housekeeping/build.sh'], - cargoClippyCmds: [] + cargoClippyCmds: [], + buildArtifacts: "target/release/bridge-relayer.d" ) pipeline.runPipeline() diff --git a/housekeeping/build.sh b/housekeeping/build.sh index 9012c2c..8aebdc4 100755 --- a/housekeeping/build.sh +++ b/housekeeping/build.sh @@ -1,4 +1,3 @@ #!/bin/bash set -e -export rustcVersion="1.73.0" -cargo build +cargo b -r \ No newline at end of file diff --git a/housekeeping/docker/release/Dockerfile b/housekeeping/docker/release/Dockerfile new file mode 100644 index 0000000..2355019 --- /dev/null +++ b/housekeeping/docker/release/Dockerfile @@ -0,0 +1,16 @@ +FROM debian:bullseye-20231120-slim + +# Install dependencies +RUN apt-get update && \ + apt-get install --no-install-recommends -y \ + ca-certificates nano curl && \ + apt-get autoremove -y && \ + apt-get clean && \ + find /var/lib/apt/lists/ -type f -not -name lock -delete &&\ + useradd substrate -u 10000 + +USER substrate + +COPY ./target/release/bridge-relayer /usr/local/bin/relayer + +ENTRYPOINT ["relayer"] \ No newline at end of file