Skip to content

Commit e9727b8

Browse files
committed
ci: APP_BUILD_TYPE for deps task
1 parent 732f031 commit e9727b8

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.github/workflows/pro_selfhosted.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
3939
- name: Install deps
4040
run: |
41-
task deps
41+
task deps APP_BUILD_TYPE=pro_selfhosted
4242
4343
- name: Run build
4444
run: task build APP_BUILD_TYPE=pro_selfhosted

.github/workflows/pro_selfhosted_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
4343
- name: Install deps
4444
run: |
45-
task deps
45+
task deps APP_BUILD_TYPE=pro_selfhosted
4646
4747
- name: Import gnupg
4848
run: |

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ tasks:
4040
deps:be:
4141
desc: Vendor application dependencies
4242
cmds:
43-
- go {{ if eq .APP_BUILD_TYPE "" }}.mod{{else}}work{{ end }} vendor
43+
- go {{ if eq .APP_BUILD_TYPE "pro_selfhosted" }}work{{ else }}mod{{ end }} vendor
4444

4545
deps:fe:
4646
desc: Installs nodejs requirements

deployment/docker/runner/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN if [ -n "$APP_BUILD_TYPE" ]; then \
2525

2626
RUN --mount=type=cache,target=/go/pkg \
2727
--mount=type=cache,target=/root/.cache/go-build \
28-
task deps && \
28+
task deps APP_BUILD_TYPE=${APP_BUILD_TYPE} && \
2929
task build GOOS=${TARGETOS} GOARCH=${TARGETARCH} APP_BUILD_TYPE=${APP_BUILD_TYPE}
3030

3131

deployment/docker/server/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN if [ -n "$APP_BUILD_TYPE" ]; then \
2525

2626
RUN --mount=type=cache,target=/go/pkg \
2727
--mount=type=cache,target=/root/.cache/go-build \
28-
task deps && \
28+
task deps APP_BUILD_TYPE=${APP_BUILD_TYPE} && \
2929
task build GOOS=${TARGETOS} GOARCH=${TARGETARCH} APP_BUILD_TYPE=${APP_BUILD_TYPE}
3030

3131

0 commit comments

Comments
 (0)