Skip to content

Commit

Permalink
rultor cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Nov 23, 2022
1 parent 32b10d2 commit 088547a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .rultor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
docker:
image: yegor256/rultor-image:1.12.0
assets:
docker-password: yegor256/home#assets/docker-password
release:
script: |-
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
repo=yegor256/squid-proxy
sed -i -e "s/^0.0.0/${tag}/" Dockerfile
sudo docker build "$(pwd)" --tag "${repo}:${tag}"
cat ../docker-password | sudo docker login --password-stdin --username yegor256
sudo docker push "${repo}:${tag}"

0 comments on commit 088547a

Please sign in to comment.