Skip to content

Commit

Permalink
[CI] Abort image building process if the npcap file non found
Browse files Browse the repository at this point in the history
  • Loading branch information
pazone committed Jan 25, 2024
1 parent 43f2c42 commit 7a52876
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@ endif
endif

# Requires login at google storage.
copy-npcap: status=".status.copy-npcap"
copy-npcap:
@echo '0' > ${status}
ifeq ($(CI),true)
@gsutil cp gs://$(GS_BUCKET_PATH)/private/$(NPCAP_FILE) ../npcap/lib/$(NPCAP_FILE) || echo '1' > ${status}
else
@echo 'Only available if running in the CI'
endif
ifeq ($(CI),true)
@gsutil cp gs://$(GS_BUCKET_PATH)/private/$(NPCAP_FILE) ../npcap/lib/$(NPCAP_FILE)
else
@echo 'Only available if running in the CI'
endif

push:
$(MAKE) atomic-push
Expand Down

0 comments on commit 7a52876

Please sign in to comment.