Skip to content

Commit 047ca98

Browse files
Only update atom feed for new releases
Don't publish canary versions to the feed.
1 parent afecdf2 commit 047ca98

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Makefile

+6-4
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,14 @@ publish: prep-install-scripts
108108
$(MAKE) $(MAKE_OPTS) publish MIXIN=kubernetes -f mixin.mk
109109
# AZURE_STORAGE_CONNECTION_STRING will be used for auth in the following commands
110110
if [[ "$(PERMALINK)" == "latest" ]]; then \
111-
az storage blob upload-batch -d porter/$(VERSION) -s bin/$(VERSION); \
111+
# Refresh the permalink to the new binaries \
112+
az storage blob upload-batch -d porter/$(VERSION) -s bin/$(VERSION); \
113+
# Update the mixin feed with the new version \
114+
az storage blob download -c porter -n atom.xml -f bin/atom.xml \
115+
bin/porter mixins feed generate -d bin/mixins -f bin/atom.xml -t build/atom-template.xml \
116+
az storage blob upload -c porter -n atom.xml -f bin/atom.xml \
112117
fi
113118
az storage blob upload-batch -d porter/$(PERMALINK) -s bin/$(VERSION)
114-
az storage blob download -c porter -n atom.xml -f bin/atom.xml
115-
bin/porter mixins feed generate -d bin/mixins -f bin/atom.xml -t build/atom-template.xml
116-
az storage blob upload -c porter -n atom.xml -f bin/atom.xml
117119

118120
install: build
119121
mkdir -p $(HOME)/.porter

0 commit comments

Comments
 (0)