File tree 4 files changed +12
-18
lines changed
4 files changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -50,21 +50,21 @@ jobs:
50
50
echo "BUILD_VERSION=$BUILD_VERSION" >> "$GITHUB_ENV"
51
51
echo "COMMIT_NAME=$COMMIT_NAME" >> "$GITHUB_ENV"
52
52
- name : Log in to the Container registry
53
- uses : docker/login-action@v3.0.0
53
+ uses : docker/login-action@v3
54
54
with :
55
55
registry : ${{ env.REGISTRY }}
56
56
username : ${{ github.actor }}
57
57
password : ${{ secrets.GITHUB_TOKEN }}
58
58
- name : Extract tags for Docker
59
59
id : meta
60
- uses : docker/metadata-action@v5.0.0
60
+ uses : docker/metadata-action@v5
61
61
with :
62
62
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
63
63
tags : |
64
64
type=raw,value=${{ env.BUILD_VERSION }}
65
65
${{ contains(env.COMMIT_NAME, '[release]') && 'type=raw,value=latest' || '' }}
66
66
- name : Build and push Docker image
67
- uses : docker/build-push-action@v5.0.0
67
+ uses : docker/build-push-action@v6
68
68
with :
69
69
build-args : |
70
70
app_version=${{ env.BUILD_VERSION }}
Original file line number Diff line number Diff line change @@ -50,20 +50,20 @@ jobs:
50
50
echo "BUILD_VERSION=$BUILD_VERSION" >> "$GITHUB_ENV"
51
51
echo "COMMIT_NAME=$COMMIT_NAME" >> "$GITHUB_ENV"
52
52
- name : Log in to the Container registry
53
- uses : docker/login-action@v3.0.0
53
+ uses : docker/login-action@v3
54
54
with :
55
55
registry : ${{ env.REGISTRY }}
56
56
username : ${{ github.actor }}
57
57
password : ${{ secrets.GITHUB_TOKEN }}
58
58
- name : Extract tags for Docker
59
59
id : meta
60
- uses : docker/metadata-action@v5.0.0
60
+ uses : docker/metadata-action@v5
61
61
with :
62
62
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
63
63
tags : |
64
64
type=raw,value=${{ env.BUILD_VERSION }}-e2e
65
65
- name : Build and push Docker image
66
- uses : docker/build-push-action@v5.0.0
66
+ uses : docker/build-push-action@v6
67
67
with :
68
68
build-args : |
69
69
app_version=${{ env.BUILD_VERSION }}
Original file line number Diff line number Diff line change @@ -6,10 +6,9 @@ ARG NODE_MAJOR=20
6
6
ENV DEBIAN_FRONTEND=noninteractive
7
7
ENV NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/cert.pem
8
8
9
- RUN apt-get update && apt-get -y upgrade
9
+ RUN apt-get update && apt-get -y upgrade && apt-get -y install ca-certificates curl gnupg
10
10
11
11
# node
12
- RUN apt-get -y install ca-certificates curl gnupg
13
12
RUN mkdir -p /etc/apt/keyrings
14
13
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
15
14
@@ -37,17 +36,15 @@ ARG NODE_MAJOR=20
37
36
38
37
ENV DEBIAN_FRONTEND=noninteractive
39
38
40
- RUN apt-get update && apt-get -y upgrade
39
+ RUN apt-get update && apt-get -y upgrade && apt-get -y install ca-certificates curl gnupg
41
40
42
41
# node
43
- RUN apt-get -y install ca-certificates curl gnupg
44
42
RUN mkdir -p /etc/apt/keyrings
45
43
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
46
44
47
45
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
48
46
49
- RUN apt-get update
50
- RUN apt-get -y install nginx supervisor nodejs
47
+ RUN apt-get update && apt-get -y install nginx supervisor nodejs
51
48
52
49
# remove unnecessary packages
53
50
RUN apt-get -y purge curl gnupg gnupg2 && \
Original file line number Diff line number Diff line change @@ -4,17 +4,15 @@ ARG NODE_MAJOR=20
4
4
5
5
ENV DEBIAN_FRONTEND=noninteractive
6
6
7
- RUN apt-get update && apt-get -y upgrade
7
+ RUN apt-get update && apt-get -y upgrade && apt-get -y install ca-certificates curl gnupg
8
8
9
9
# node
10
- RUN apt-get -y install ca-certificates curl gnupg
11
10
RUN mkdir -p /etc/apt/keyrings
12
11
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
13
12
14
13
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
15
14
16
- RUN apt-get update
17
- RUN apt-get -y install nodejs
15
+ RUN apt-get update && apt-get -y install nodejs
18
16
19
17
# remove unnecessary packages
20
18
RUN apt-get -y purge curl gnupg gnupg2 && \
@@ -55,8 +53,7 @@ COPY package.json package-lock.json /opt/app/
55
53
COPY --from=install-stage /opt/app/node_modules /opt/app/node_modules
56
54
57
55
# split install playwright deps and browser
58
- RUN npx playwright install chromium ffmpeg --with-deps --dry-run | grep --color=never 'sh -c' | sed 's|sh -c "||' | sed 's|"||' > ./deps.sh
59
- RUN chmod +x ./deps.sh && ./deps.sh && rm -rf ./deps.sh
56
+ RUN npx playwright install chromium ffmpeg --with-deps --dry-run | grep --color=never 'sh -c' | sed 's|sh -c "||' | sed 's|"||' > ./deps.sh && chmod +x ./deps.sh && ./deps.sh && rm -rf ./deps.sh
60
57
61
58
ENV PLAYWRIGHT_DOWNLOAD_HOST=https://storage.yandexcloud.net/playwright
62
59
ENV PLAYWRIGHT_BROWSERS_PATH=/opt/app/pw-browsers
You can’t perform that action at this time.
0 commit comments