Fix CI build
This commit is contained in:
parent
cb93a69610
commit
f7f0d9afa7
2 changed files with 9 additions and 6 deletions
13
.build.yml
13
.build.yml
|
|
@ -16,8 +16,8 @@ triggers:
|
||||||
condition: failure
|
condition: failure
|
||||||
to: failure@cofob.ru
|
to: failure@cofob.ru
|
||||||
artifacts:
|
artifacts:
|
||||||
- matrix-dnsbot/target/release/dnsbot
|
- matrix-dnsbot/dnsbot
|
||||||
- dnsbot-upx
|
- matrix-dnsbot/dnsbot-upx
|
||||||
tasks:
|
tasks:
|
||||||
- install: |
|
- install: |
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- -y -q --default-toolchain nightly --profile minimal
|
curl https://sh.rustup.rs -sSf | sh -s -- -y -q --default-toolchain nightly --profile minimal
|
||||||
|
|
@ -33,8 +33,10 @@ tasks:
|
||||||
source $HOME/.cargo/env
|
source $HOME/.cargo/env
|
||||||
cd matrix-dnsbot
|
cd matrix-dnsbot
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
cp target/release/dnsbot dnsbot
|
||||||
- compress: |
|
- compress: |
|
||||||
upx -9 matrix-dnsbot/target/release/dnsbot -o dnsbot-upx
|
cd matrix-dnsbot/
|
||||||
|
upx -9 dnsbot -o dnsbot-upx
|
||||||
- setup-docker: |
|
- setup-docker: |
|
||||||
curl -fsSL https://get.docker.com -o get-docker.sh
|
curl -fsSL https://get.docker.com -o get-docker.sh
|
||||||
sudo sh get-docker.sh
|
sudo sh get-docker.sh
|
||||||
|
|
@ -44,6 +46,7 @@ tasks:
|
||||||
sleep 10
|
sleep 10
|
||||||
cat ~/.docker_pass | docker login --username cofob --password-stdin
|
cat ~/.docker_pass | docker login --username cofob --password-stdin
|
||||||
- build-container: |
|
- build-container: |
|
||||||
|
cd matrix-dnsbot/
|
||||||
sudo docker build -t dnsbot . --build-arg bin=dnsbot-upx
|
sudo docker build -t dnsbot . --build-arg bin=dnsbot-upx
|
||||||
docker tag dnsbot cofob/dnsbot
|
sudo docker tag dnsbot cofob/dnsbot
|
||||||
docker image push cofob/dnsbot
|
sudo docker image push cofob/dnsbot
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
||||||
ARG bin
|
ARG bin=dnsbot
|
||||||
|
|
||||||
COPY ${bin} /dnsbot
|
COPY ${bin} /dnsbot
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue