Update docker-image.yml
This commit is contained in:
6
.github/workflows/docker-image.yml
vendored
6
.github/workflows/docker-image.yml
vendored
@@ -6,6 +6,10 @@ on:
|
|||||||
NodeVersion:
|
NodeVersion:
|
||||||
required: true
|
required: true
|
||||||
description: 'Node.js version to build (ex: v12.4.0)'
|
description: 'Node.js version to build (ex: v12.4.0)'
|
||||||
|
PythonVersion:
|
||||||
|
required: true
|
||||||
|
description: 'Node.js v12 needs python2 and Node.js v16 needs python3'
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
@@ -17,7 +21,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: |
|
run: |
|
||||||
docker build --file Dockerfile --tag alpine_nodejs:${{github.event.inputs.NodeVersion}} --build-arg NodeVersion=${{github.event.inputs.NodeVersion}} .
|
docker build --file Dockerfile --tag alpine_nodejs:${{github.event.inputs.NodeVersion}} --build-arg NodeVersion=${{github.event.inputs.NodeVersion}} --build-arg PythonVersion=${{github.event.inputs.PythonVersion}}.
|
||||||
- name: Copy alpine node.js out
|
- name: Copy alpine node.js out
|
||||||
run: |
|
run: |
|
||||||
mkdir $RUNNER_TEMP/alpine_node
|
mkdir $RUNNER_TEMP/alpine_node
|
||||||
|
|||||||
Reference in New Issue
Block a user