Skip to content

Commit dc9b82b

Browse files
committed
Upgrading to latest versions for Dockerfile
Signed-off-by: NishkarshRaj <[email protected]>
1 parent 35635c2 commit dc9b82b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/release-npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup Node
1717
uses: actions/setup-node@v3
1818
with:
19-
node-version: "18.x"
19+
node-version: "20.x"
2020
registry-url: "https://npm.pkg.github.com"
2121
cache: "yarn"
2222
scope: "@nishkarshraj"

.github/workflows/super-devsecops.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
node-version: [16.x, 18.x]
16+
node-version: [16.x, 18.x, 20.x]
1717
steps:
1818
- name: Checkout Repository to Runner Context
1919
uses: actions/checkout@v4
@@ -30,7 +30,7 @@ jobs:
3030
needs: build
3131
strategy:
3232
matrix:
33-
node-version: [16.x, 18.x]
33+
node-version: [16.x, 18.x, 20.x]
3434
steps:
3535
- name: Checkout Repository to Runner Context
3636
uses: actions/checkout@v4
@@ -53,7 +53,7 @@ jobs:
5353
- name: Checkout repository
5454
uses: actions/checkout@v4
5555
- name: Log in to the Container registry
56-
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
56+
uses: docker/login-action@b4bedf8053341df3b5a9f9e0f2cf4e79e27360c6
5757
with:
5858
registry: ${{ env.REGISTRY }}
5959
username: ${{ github.actor }}
@@ -64,7 +64,7 @@ jobs:
6464
with:
6565
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
6666
- name: Build and push Docker image
67-
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
67+
uses: docker/build-push-action@0f847266c302569530c95bfa228489494c43b002
6868
with:
6969
context: .
7070
push: true

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-alpine AS builder
1+
FROM node:20-alpine AS builder
22
ENV NODE_ENV production
33
WORKDIR /app
44
COPY package.json .
@@ -7,7 +7,7 @@ RUN yarn install --production
77
COPY . .
88
RUN yarn build
99

10-
FROM nginx:1.21.0-alpine as production
10+
FROM nginx:1.25.2-alpine as production
1111
ENV NODE_ENV production
1212
COPY --from=builder /app/build /usr/share/nginx/html
1313
COPY nginx.conf /etc/nginx/conf.d/default.conf

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nishkarshraj/savvy-devsecops",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/NishkarshRaj/savvy-devsecops.git"

0 commit comments

Comments
 (0)