Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Cherry-pick: Get artifacts from beats/build/distributions (#40) #42

Merged
merged 1 commit into from
Jul 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export VERSION_TAG := $(ELASTIC_VERSION)
DOWNLOAD_URL_ROOT ?= https://artifacts.elastic.co/downloads/beats
endif

BUILD_ARTIFACT_PATH ?= beats/build/distributions

BEATS := $(shell cat beats.txt)
REGISTRY ?= docker.elastic.co
HTTPD ?= beats-docker-artifact-server
Expand Down Expand Up @@ -89,13 +91,13 @@ local-httpd:

release-manager-snapshot: local-httpd
ELASTIC_VERSION=$(ELASTIC_VERSION)-SNAPSHOT \
DOWNLOAD_URL_ROOT=http://localhost:8000/beats/build/upload \
DOWNLOAD_URL_ROOT=http://localhost:8000/$(BUILD_ARTIFACT_PATH) \
DOCKER_FLAGS='--network=host' \
make images || (docker kill $(HTTPD); false)
-docker kill $(HTTPD)
release-manager-release: local-httpd
ELASTIC_VERSION=$(ELASTIC_VERSION) \
DOWNLOAD_URL_ROOT=http://localhost:8000/beats/build/upload \
DOWNLOAD_URL_ROOT=http://localhost:8000/$(BUILD_ARTIFACT_PATH) \
DOCKER_FLAGS='--network=host' \
make images || (docker kill $(HTTPD); false)
-docker kill $(HTTPD)
Expand All @@ -104,8 +106,8 @@ release-manager-release: local-httpd
from-snapshot:
rm -rf ./snapshots
for beat in $(BEATS); do \
mkdir -p snapshots/beats/build/upload/$$beat; \
(cd snapshots/beats/build/upload/$$beat && \
mkdir -p snapshots/$(BUILD_ARTIFACT_PATH)/$$beat; \
(cd snapshots/$(BUILD_ARTIFACT_PATH)/$$beat && \
wget https://snapshots.elastic.co/downloads/beats/$$beat/$$beat-$(ELASTIC_VERSION)-SNAPSHOT-linux-x86_64.tar.gz && \
wget https://snapshots.elastic.co/downloads/beats/$$beat/$$beat-oss-$(ELASTIC_VERSION)-SNAPSHOT-linux-x86_64.tar.gz); \
done
Expand Down