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:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user