Skip to content

Commit

Permalink
chore: add node 16. Remove versions lower than 12 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Di Benedetto authored Jan 7, 2022
1 parent 22932d9 commit 2ae5dc0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ on:
- master

jobs:

build:

runs-on: ubuntu-latest

strategy:
matrix:
NODE: [8, 8.11, 8.17, 10, 12, 14]
NODE: [12, 14, 16]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Insert node version into Dockerfile
run: sed -i "s/{VERSION}/${{ matrix.NODE }}/g" ./Dockerfile

- name: Build the Docker image
run: docker build -t stocard/node:${{ matrix.NODE }} .

- name: Push docker image to dockerhub
run: docker login -u="${{ secrets.DOCKER_USERNAME }}" -p="${{ secrets.DOCKER_PASSWORD }}" && docker push stocard/node:${{ matrix.NODE }} && docker logout
9 changes: 4 additions & 5 deletions .github/workflows/docker-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@ name: Docker Image Build & Test
on: [push]

jobs:

build:

runs-on: ubuntu-latest

strategy:
matrix:
NODE: [8, 8.11, 8.17, 10, 12, 14]
NODE: [12, 14, 16]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Insert node version into Dockerfile
run: sed -i "s/{VERSION}/${{ matrix.NODE }}/g" ./Dockerfile

- name: Build the Docker image
run: docker build -t stocard/node:${{ matrix.NODE }} .
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@

Provides a base image to run node.js applications in: `stocard/node:X.Y`

You can try it out by: `docker run -it stocard/node:8.11 node`
You can try it out by: `docker run -it stocard/node:12 node`

It currently builds three different base images:

* newest minor semver of node 8
* node version 8.x
* node version 10.x

The size is ~26MB.
Current base images:
- 12
- 14
- 16

### More information

Expand Down

0 comments on commit 2ae5dc0

Please sign in to comment.