Skip to content

Commit

Permalink
Include node profile in the name of built .img artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
benhylau committed Apr 26, 2018
1 parent 182c34c commit f1b3432
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mesh-orange-images/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ build_images: download_source
$(MAKE) -C $(BUILD_DIR) build-depends
$(foreach board,$(BOARDS),$(MAKE) -C $(BUILD_DIR) clean; $(MAKE) -C $(BUILD_DIR)/boards/$(board) image;)
cp $(BUILD_DIR)/output/* $(OUTPUT_DIR)
if test -n "${GITHUB_RELEASE_VERSION}"; then rename "s/.img/-${GITHUB_RELEASE_VERSION}.img/" $(OUTPUT_DIR)/*.img; fi
if test -n "${GITHUB_RELEASE_VERSION}"; \
then rename "s/.img/-${GITHUB_RELEASE_VERSION}_$(PROFILE).img/" $(OUTPUT_DIR)/*.img; \
else rename "s/.img/-$(PROFILE).img/" $(OUTPUT_DIR)/*.img; \
fi

download_source: mkdir_build
git clone https://github.com/tomeshnet/mesh-orange.git -b $(TAG) $(BUILD_DIR)
Expand Down

0 comments on commit f1b3432

Please sign in to comment.