Skip to content

Commit

Permalink
feat: add version 20
Browse files Browse the repository at this point in the history
  • Loading branch information
mhf-ir committed Jun 6, 2023
1 parent 06b923d commit f0bd10d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,20 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- shell: bash
- name: Build 18
shell: bash
run: |
docker build -t aasaam/node-lts-plus .
docker push aasaam/node-lts-plus
docker tag aasaam/node-lts-plus ghcr.io/aasaam/node-lts-plus:latest
docker build --build-arg IMAGE_VERSION=18 -t aasaam/node-lts-plus:18 .
docker push aasaam/node-lts-plus:18
docker tag aasaam/node-lts-plus:18 ghcr.io/aasaam/node-lts-plus:18
docker push ghcr.io/aasaam/node-lts-plus:18
- name: Build latest
shell: bash
run: |
docker build --build-arg IMAGE_VERSION=20 -t aasaam/node-lts-plus:latest .
docker push aasaam/node-lts-plus:latest
docker tag aasaam/node-lts-plus:latest ghcr.io/aasaam/node-lts-plus:latest
docker push ghcr.io/aasaam/node-lts-plus:latest
- name: Docker Hub Description
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:18-alpine
ARG IMAGE_VERSION=18
FROM node:$IMAGE_VERSION-alpine

RUN apk add --no-cache \
nano \
Expand Down

0 comments on commit f0bd10d

Please sign in to comment.