Skip to content

Commit 818de36

Browse files
committed
build: update azure-foundry-provider to v0.3.0 with flexible ref support
Refactor provider versioning to accept either version tags (v-prefixed) or branch names via AZURE_FOUNDRY_PROVIDER_REF build arg. Add passthrough in Makefile and change default TAG from 'dev' to 'local'.
1 parent 6bf7fd6 commit 818de36

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ EOF
7979
FOE
8080

8181
ARG OPENCODE_VERSION=latest
82-
ARG AZURE_FOUNDRY_PROVIDER_VERSION=0.2.1
82+
ARG AZURE_FOUNDRY_PROVIDER_REF=v0.3.0
8383
ARG ENGRAM_VERSION=latest
8484
ARG OPENCODE_BUILD_DIR=/usr/local/share/opencode-build
8585

@@ -122,10 +122,11 @@ bun install -g "opencode-ai@${OPENCODE_VERSION}" || exit 1
122122

123123
###
124124
# providers
125+
# AZURE_FOUNDRY_PROVIDER_REF: if starts with 'v' → version tag, else → branch name
125126
#
126127
(
127128
pushd /tmp \
128-
&& bun install "github:ophiosdev/azure-foundry-provider#v${AZURE_FOUNDRY_PROVIDER_VERSION}" \
129+
&& bun install "github:ophiosdev/azure-foundry-provider#${AZURE_FOUNDRY_PROVIDER_REF}" \
129130
&& cd node_modules/azure-foundry-provider \
130131
&& bun build --outdir=dist src/index.ts \
131132
&& mv dist "${PROVIDER_DIR}/azure-foundry-provider" \

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
IMAGE ?= opencode-cli
2-
TAG ?= dev
2+
TAG ?= local
33
IMAGE_REF := $(IMAGE):$(TAG)
44
DOCKERFILE ?= Dockerfile
55
CONTEXT ?= .
66
OPENCODE_VERSION ?= latest
7+
AZURE_FOUNDRY_PROVIDER_REF ?= v0.3.0
78

89
.PHONY: build clean
910

@@ -13,6 +14,7 @@ build:
1314
-t $(IMAGE_REF) \
1415
-f $(DOCKERFILE) \
1516
--build-arg OPENCODE_VERSION=$(OPENCODE_VERSION) \
17+
--build-arg AZURE_FOUNDRY_PROVIDER_REF=$(AZURE_FOUNDRY_PROVIDER_REF) \
1618
$(CONTEXT)
1719

1820
clean:

0 commit comments

Comments
 (0)