Skip to content

Commit

Permalink
[sonic-slave]: SLAVE_TAG should be for both Dockerfile and Dockerfile…
Browse files Browse the repository at this point in the history
….user (#950)

Should rebuild both Dockerfile and Dockerfile.user when any of the two
files change.
  • Loading branch information
lguohan authored Sep 9, 2017
1 parent 2cd2f95 commit d3997f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $(shell rm -f .screen)
MAKEFLAGS += -B

SLAVE_BASE_TAG = $(shell shasum sonic-slave/Dockerfile | awk '{print substr($$1,0,11);}')
SLAVE_TAG = $(shell shasum sonic-slave/Dockerfile.user | awk '{print substr($$1,0,11);}')
SLAVE_TAG = $(shell cat sonic-slave/Dockerfile.user sonic-slave/Dockerfile | shasum | awk '{print substr($$1,0,11);}')
SLAVE_BASE_IMAGE = sonic-slave-base
SLAVE_IMAGE = sonic-slave-$(USER)

Expand Down

0 comments on commit d3997f4

Please sign in to comment.