Skip to content

Commit b79fccb

Browse files
authored
Adding multiplatform build (#18)
* Adding multiplatform build * Adding build for NodeJS 18 * Using latest debian for Node18
1 parent 62a8c2a commit b79fccb

18 files changed

+49
-48
lines changed

.github/workflows/workflow.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,31 @@ jobs:
2121
- variant: '12'
2222
- variant: '14'
2323
- variant: '16'
24+
- variant: '18'
2425
- variant: '6-apache'
2526
- variant: '8-apache'
2627
- variant: '10-apache'
2728
- variant: '12-apache'
2829
- variant: '14-apache'
2930
- variant: '16-apache'
31+
- variant: '18-apache'
3032
runs-on: ubuntu-latest
3133
steps:
3234
- name: Set up QEMU
3335
uses: docker/setup-qemu-action@v1
3436
- name: Set up Docker Buildx
3537
uses: docker/setup-buildx-action@v1
3638
- uses: actions/checkout@v1
37-
- name: Build and test
38-
run: |
39-
BRANCH="master" VARIANT="${{ matrix.variant }}" ./build-and-test.sh
40-
docker images | grep thecodingmachine/nodejs
4139
- name: Login to DockerHub
4240
# Merge ~ push.
4341
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
4442
uses: docker/login-action@v1
4543
with:
4644
username: ${{ secrets.DOCKERHUB_USERNAME }}
4745
password: ${{ secrets.DOCKERHUB_TOKEN }}
48-
- name: Release
49-
# Merge ~ push.
50-
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
46+
- name: Build, test and push
47+
env:
48+
EVENT_NAME: ${{ github.event_name }}
5149
run: |
52-
docker push thecodingmachine/nodejs:${{ matrix.variant}}
50+
BRANCH="master" VARIANT="${{ matrix.variant }}" ./build-and-test.sh
51+
docker images | grep thecodingmachine/nodejs

Dockerfile.10

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ CMD [ "node" ]
137137

138138
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
139139

140-
USER docker
140+
USER docker

Dockerfile.10-apache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,4 +229,4 @@ CMD ["apache2-foreground"]
229229

230230
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
231231

232-
USER docker
232+
USER docker

Dockerfile.12

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ CMD [ "node" ]
137137

138138
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
139139

140-
USER docker
140+
USER docker

Dockerfile.12-apache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,4 +229,4 @@ CMD ["apache2-foreground"]
229229

230230
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
231231

232-
USER docker
232+
USER docker

Dockerfile.14

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ CMD [ "node" ]
137137

138138
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
139139

140-
USER docker
140+
USER docker

Dockerfile.14-apache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,4 +229,4 @@ CMD ["apache2-foreground"]
229229

230230
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
231231

232-
USER docker
232+
USER docker

Dockerfile.16

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ CMD [ "node" ]
137137

138138
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
139139

140-
USER docker
140+
USER docker

Dockerfile.16-apache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,4 +229,4 @@ CMD ["apache2-foreground"]
229229

230230
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
231231

232-
USER docker
232+
USER docker

Dockerfile.18

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:stretch-slim
1+
FROM debian:bullseye-slim
22

33
LABEL authors="Julien Neuhart <j.neuhart@thecodingmachine.com>, David Négrier <d.negrier@thecodingmachine.com>"
44

@@ -137,4 +137,4 @@ CMD [ "node" ]
137137

138138
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
139139

140-
USER docker
140+
USER docker

0 commit comments

Comments
 (0)