Commit 049394e 1 parent fedcc2b commit 049394e Copy full SHA for 049394e
File tree 3 files changed +16
-6
lines changed
3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 6
6
* .less eol =lf
7
7
* .styl eol =lf
8
8
* .js eol =lf
9
+ * .cjs eol =lf
9
10
* .ts eol =lf
10
11
* .jsx eol =lf
11
12
* .tsx eol =lf
Original file line number Diff line number Diff line change 83
83
tags : type=sha
84
84
85
85
- name : Build and push Docker image
86
+ if : github.event_name == 'workflow_dispatch'
87
+ uses : docker/build-push-action@v4
88
+ with :
89
+ context : .
90
+ push : ${{ github.event_name == 'push' }}
91
+ provenance : false
92
+ tags : ${{ steps.meta.outputs.tags }}
93
+ labels : ${{ steps.meta.outputs.labels }}
94
+
95
+ - name : Build and push Docker image
96
+ if : github.event_name != 'workflow_dispatch'
86
97
uses : docker/build-push-action@v4
87
98
with :
88
99
context : .
@@ -92,10 +103,6 @@ jobs:
92
103
labels : ${{ steps.meta.outputs.labels }}
93
104
cache-from : type=local,src=/tmp/.buildx-cache
94
105
cache-to : type=local,dest=/tmp/.buildx-cache-new,mode=max
95
- build-args : |
96
- TECHDOCS_BUILDER_TYPE=external
97
- TECHDOCS_GENERATOR_TYPE=local
98
- TECHDOCS_PUBLISHER_TYPE=awsS3
99
106
100
107
- # Temp fix
101
108
# https://github.com/docker/build-push-action/issues/252
Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ COPY .yarnrc.yml ./
14
14
RUN find packages -mindepth 2 -maxdepth 2 \! -name "package.json" -exec rm -rf {} \+
15
15
16
16
ENV IS_CONTAINER="TRUE"
17
- RUN $YARN install --frozen-lockfile --network-timeout 600000
17
+ RUN $YARN add -D -W --arch=x64 --platform=linux turbo
18
+ RUN $YARN add -D -W --arch=x64 --platform=linux @esbuild/linux-x64
19
+ RUN $YARN install --frozen-lockfile --network-timeout 600000 --ignore-optional
18
20
19
21
# Stage 2 - Build packages
20
22
FROM registry.access.redhat.com/ubi9/nodejs-18-minimal:latest AS build
@@ -59,7 +61,7 @@ RUN tar xzf skeleton.tar.gz && rm skeleton.tar.gz
59
61
60
62
# Install production dependencies
61
63
ENV IS_CONTAINER="TRUE"
62
- RUN $YARN install --frozen-lockfile --production --network-timeout 600000 && $YARN cache clean
64
+ RUN $YARN install --frozen-lockfile --production --network-timeout 600000 --ignore-optional && $YARN cache clean
63
65
64
66
# Copy the built packages from the build stage
65
67
COPY --from=build /opt/app-root/src/packages/backend/dist/bundle.tar.gz .
You can’t perform that action at this time.
0 commit comments