Skip to content

Commit d7cd88a

Browse files
committed
Transition to Node 22 and Alpine image to fix build issues
1 parent 4b11044 commit d7cd88a

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/build-publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
-
1919
name: Check out the repo
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
-
2323
name: Get Docker Metadata

.github/workflows/check-release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
replace: "${{ env.FIREBASE_TOOLS_RELEASE }}"
7878
include: "{Dockerfile,action.yaml}"
7979
regex: false
80-
80+
8181
# - id: set-version
8282
# run: echo "version=${{env.FIREBASE_TOOLS_RELEASE}}" >> "$GITHUB_OUTPUT"
8383

@@ -101,19 +101,19 @@ jobs:
101101
body: "Bump `firebase-tools` to ${{ needs.check-releases.outputs.firebase-tools-release }}"
102102
draft: false
103103
prerelease: false
104-
104+
105105
publish:
106106
name: Docker build & push
107107
needs: bump-version
108108
runs-on: ubuntu-latest
109109
steps:
110-
-
110+
-
111111
name: Check out the repo
112-
uses: actions/checkout@v3
112+
uses: actions/checkout@v4
113113
with:
114114
ref: ${{ needs.bump-version.outputs.new-version }}
115-
116-
-
115+
116+
-
117117
name: Get Docker Metadata
118118
id: meta
119119
uses: docker/metadata-action@v4
@@ -125,14 +125,14 @@ jobs:
125125
w9jds/firebase-action
126126
ghcr.io/${{ github.repository }}
127127
128-
-
128+
-
129129
name: Login to Docker Hub
130130
uses: docker/login-action@v2
131131
with:
132132
username: w9jds
133133
password: ${{ secrets.DOCKER_PASSWORD }}
134134

135-
-
135+
-
136136
name: Log in to the Container registry
137137
uses: docker/login-action@v2
138138
with:

.github/workflows/docker-build-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
- name: Build the Docker image
1313
run: docker build . --file Dockerfile

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-buster
1+
FROM node:22-alpine
22

33
LABEL version="14.11.0"
44
LABEL repository="https://github.com/w9jds/firebase-action"
@@ -10,9 +10,9 @@ LABEL com.github.actions.description="Wraps the firebase-tools CLI to enable com
1010
LABEL com.github.actions.icon="package"
1111
LABEL com.github.actions.color="gray-dark"
1212

13-
RUN apt update && apt-get install --no-install-recommends -y jq openjdk-11-jre && rm -rf /var/lib/apt/lists/*
13+
RUN apk update && apk add --no-cache jq openjdk11-jre
1414

15-
RUN npm i -g npm@8.10.0 && npm cache clean --force
15+
RUN npm i -g npm@10.9.2 && npm cache clean --force
1616
RUN npm i -g firebase-tools@14.11.0 && npm cache clean --force
1717

1818
COPY LICENSE README.md /

0 commit comments

Comments
 (0)