mirror of
https://github.com/cmehay/docker-tor-hidden-service.git
synced 2025-05-14 05:52:50 +00:00
Add tor and torsock version in plain files
Now: - `make build` will build the container with tor version set in `current_tor_version` and `current_torsock_version` - `make update_tor_version` will update theses files
This commit is contained in:
parent
1dcec5c580
commit
7ab49bfde4
4 changed files with 15 additions and 4 deletions
14
Makefile
14
Makefile
|
@ -1,7 +1,9 @@
|
|||
.EXPORT_ALL_VARIABLES:
|
||||
|
||||
TOR_VERSION = $(shell bash last_tor_version.sh)
|
||||
TORSOCKS_VERSION = $(shell bash last_torsocks_version.sh)
|
||||
LAST_TOR_VERSION = $(shell bash last_tor_version.sh)
|
||||
LAST_TORSOCKS_VERSION = $(shell bash last_torsocks_version.sh)
|
||||
TOR_VERSION = $(shell cat current_tor_version)
|
||||
TORSOCKS_VERSION = $(shell cat current_torsock_version)
|
||||
CUR_COMMIT = $(shell git rev-parse --short HEAD)
|
||||
CUR_TAG = v$(TOR_VERSION)-$(CUR_COMMIT)
|
||||
|
||||
|
@ -11,6 +13,10 @@ test:
|
|||
tag:
|
||||
git tag $(CUR_TAG)
|
||||
|
||||
update_tor_version:
|
||||
echo $(LAST_TOR_VERSION) > current_tor_version
|
||||
echo $(LAST_TORSOCKS_VERSION) > current_torsock_version
|
||||
|
||||
release: test tag
|
||||
git push origin --tags
|
||||
|
||||
|
@ -19,11 +25,13 @@ check:
|
|||
|
||||
build:
|
||||
- echo build with tor version $(TOR_VERSION) and torsocks version $(TORSOCKS_VERSION)
|
||||
- echo 'Please run make update_tor_version to build the container with the last tor version'
|
||||
docker-compose -f docker-compose.build.yml build
|
||||
|
||||
rebuild:
|
||||
- echo rebuild with tor version $(TOR_VERSION) and torsocks version $(TORSOCKS_VERSION)
|
||||
docker-compose -f docker-compose.build.yml build --no-cache
|
||||
- echo 'Please run make update_tor_version to build the container with the last tor version'
|
||||
docker-compose -f docker-compose.build.yml build --no-cache --pull
|
||||
|
||||
run: build
|
||||
docker-compose -f docker-compose.v1.yml up --force-recreate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue