Update docker-image.yml

This commit is contained in:
Tingluo Huang
2021-10-21 15:21:08 -04:00
committed by GitHub
parent 1528ef3d4c
commit 3692162466

View File

@@ -6,6 +6,10 @@ on:
NodeVersion:
required: true
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:
@@ -17,7 +21,7 @@ jobs:
- uses: actions/checkout@v2
- name: Build the Docker image
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
run: |
mkdir $RUNNER_TEMP/alpine_node