Skip to content

Commit 46b4f5f

Browse files
authored
ci: update workflow to latest (#9)
1 parent 55a9b12 commit 46b4f5f

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/javascript.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@ name: Build
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches:
6+
- master
67
pull_request:
7-
branches: [ master ]
88

99
env:
1010
REGISTRY: ghcr.io
1111
IMAGE_NAME: ${{ github.repository }}
1212

1313
jobs:
1414
build:
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-24.04
1616
permissions:
1717
contents: read
1818
packages: write
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: Log in to the Container registry
22-
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
22+
uses: docker/login-action@v3
2323
with:
2424
registry: ${{ env.REGISTRY }}
2525
username: ${{ github.actor }}
@@ -38,9 +38,9 @@ jobs:
3838
then
3939
REF_NAME=pr-${PR_NUM}
4040
fi
41-
echo "::set-output name=tag-name::${REF_NAME}-$(date +%Y)-${SECONDS_HEX}"
41+
echo "tag-name=${REF_NAME}-$(date +%Y)-${SECONDS_HEX}" >> $GITHUB_OUTPUT
4242
- name: Build and push Docker image
43-
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
43+
uses: docker/build-push-action@v6
4444
with:
4545
context: .
4646
push: true

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16.18.0
1+
FROM node:20.19.0
22

33
RUN apt-get update \
44
&& apt-get --no-install-recommends -y install ruby-full \
@@ -13,7 +13,7 @@ RUN npm install \
1313
&& npm install -g grunt-cli \
1414
&& grunt
1515

16-
FROM nginx:1.22-alpine
16+
FROM nginx:1.27.4-alpine
1717

1818
WORKDIR /usr/share/nginx/html
1919

0 commit comments

Comments
 (0)