Commit 1ef16f16 authored by Jo Cutajar's avatar Jo Cutajar 🤞
Browse files

Update .gitlab-ci.yml

parent 9fcb0841
......@@ -90,10 +90,10 @@ publish-server:
except:
- schedules
script:
- docker login -u "$DOCKER_USR" -p "$DOCKER_PWD"
- docker login -u "$DOCKER_USR" -p "$DOCKER_PWD" https://docker.io
- docker run --rm -i --name samotop-build --mount type=bind,source="$(pwd)",target=/app -e CARGO_HOME=/app/.cargo rust:1.29 cargo build --manifest-path /app/Cargo.toml --features tls --release
- docker build -t samotop .
- export tag="brightopen/samotop:$(docker run -t --rm samotop samotop -V | cut -d ' ' -f2)"
- export tag="docker.io/brightopen/samotop:$(docker run -t --rm samotop samotop -V | cut -d ' ' -f2)"
- docker tag "$tag" samotop
- docker push "$tag"
cache:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment