Skip to content

Commit

Permalink
build: Allow working with local Drafter source code in build pipeline…
Browse files Browse the repository at this point in the history
… without needing to bump hashes
  • Loading branch information
pojntfx committed Jul 3, 2024
1 parent edb358e commit 75b7e47
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions os/package/drafter-agent/drafter-agent.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
#
################################################################################

DRAFTER_AGENT_VERSION = b9281502e455d96270aa166d80da6b5254a18657
DRAFTER_AGENT_SITE = $(call github,loopholelabs,drafter,$(DRAFTER_AGENT_VERSION))
DRAFTER_AGENT_VERSION = 1.0
DRAFTER_AGENT_SITE = "$(BR2_EXTERNAL_LOOPHOLE_LABS_DRAFTER_OS_PATH)/.."
DRAFTER_AGENT_SITE_METHOD = local
DRAFTER_AGENT_OVERRIDE_SRCDIR_RSYNC_EXCLUSIONS = --exclude out

DRAFTER_AGENT_LICENSE = AGPL-3.0-or-later
DRAFTER_AGENT_LICENSE_FILES = LICENSE
Expand All @@ -14,6 +16,10 @@ DRAFTER_AGENT_GOMOD = github.com/loopholelabs/drafter

DRAFTER_AGENT_BUILD_TARGETS = cmd/drafter-agent

define DRAFTER_AGENT_CONFIGURE_CMDS
cd $(@D) && $(GO_BIN) mod vendor
endef

define DRAFTER_AGENT_INSTALL_INIT_SYSTEMD
mkdir -p $(TARGET_DIR)/usr/lib/systemd/system
sed -e "s%@DRAFTER_AGENT_VSOCK_PORT@%$(BR2_PACKAGE_DRAFTER_AGENT_VSOCK_PORT)%g" \
Expand Down
10 changes: 8 additions & 2 deletions os/package/drafter-liveness/drafter-liveness.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
#
################################################################################

DRAFTER_LIVENESS_VERSION = b9281502e455d96270aa166d80da6b5254a18657
DRAFTER_LIVENESS_SITE = $(call github,loopholelabs,drafter,$(DRAFTER_LIVENESS_VERSION))
DRAFTER_LIVENESS_VERSION = 1.0
DRAFTER_LIVENESS_SITE = "$(BR2_EXTERNAL_LOOPHOLE_LABS_DRAFTER_OS_PATH)/.."
DRAFTER_LIVENESS_SITE_METHOD = local
DRAFTER_LIVENESS_OVERRIDE_SRCDIR_RSYNC_EXCLUSIONS = --exclude out

DRAFTER_LIVENESS_LICENSE = AGPL-3.0-or-later
DRAFTER_LIVENESS_LICENSE_FILES = LICENSE
Expand All @@ -14,6 +16,10 @@ DRAFTER_LIVENESS_GOMOD = github.com/loopholelabs/drafter

DRAFTER_LIVENESS_BUILD_TARGETS = cmd/drafter-liveness

define DRAFTER_LIVENESS_CONFIGURE_CMDS
cd $(@D) && $(GO_BIN) mod vendor
endef

define DRAFTER_LIVENESS_INSTALL_INIT_SYSTEMD
mkdir -p $(TARGET_DIR)/usr/lib/systemd/system
sed -e "s%@DRAFTER_LIVENESS_VSOCK_PORT@%$(BR2_PACKAGE_DRAFTER_LIVENESS_VSOCK_PORT)%g" \
Expand Down

0 comments on commit 75b7e47

Please sign in to comment.