Skip to content

Commit 9788041

Browse files
committed
wip
1 parent 1750176 commit 9788041

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/busola-web-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ jobs:
4343
name: busola-web
4444
dockerfile: Dockerfile.web
4545
tags: ${{ inputs.tag != '' && inputs.tag || 'latest' }}
46-
build-args: ${{ inputs.tag != '' && format('default_tag={0}', inputs.tag) || '' }}
46+
build-args: ${{ inputs.tag != '' && format('tag={0}', inputs.tag) || '' }}

Dockerfile.web

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# ---- Base Alpine with Node ----
22
FROM node:20.17-alpine3.20 AS builder
33
ARG default_tag
4+
ARG tag
45

56
# Install global dependencies
67
RUN apk update && \
@@ -15,7 +16,7 @@ ENV CI true
1516

1617
COPY . /app
1718

18-
RUN yq -i '.version = "'${default_tag}'"' public/version.yaml && \
19+
RUN export TAG=${tag:-$default_tag} && yq -i '.version = "'${TAG}'"' public/version.yaml && \
1920
make resolve validate
2021

2122
RUN npm run build:docker

0 commit comments

Comments
 (0)