add versions to tags

add versions to tags
This commit is contained in:
Aleksandr Shpak 2019-06-08 17:40:36 +03:00 committed by GitHub
parent 6b53e2e1d7
commit db93544843
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -22,5 +22,9 @@ jobs:
script:
- docker login -u "$DOCKER_LOGIN" -p "$DOCKER_PASSWORD"
- docker build . -t shpaker/torsocks:latest
- docker run -d -p 9050:9050 shpaker/torsocks
- CONTAINER_ID=$(docker ps -q --filter ancestor=shpaker/torsocks)
- TOR_VERSION="$(docker exec ${CONTAINER_ID} tor --version | cut -d' ' -f 3)"
- docker build . -t shpaker/torsocks:${TOR_VERSION}
- docker images
- docker push shpaker/torsocks