Skip to content

Commit b934919

Browse files
committed
specify per step node.js container
1 parent 9f2c6e7 commit b934919

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/node_js_containers.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@ name: Dockerized NodeJs App
22
on: push
33

44
jobs:
5+
docker-steps:
6+
# Docker containers can only run on ubuntu, it cannot run on Mac or Windows.
7+
runs-on: ubuntu-latest
8+
container:
9+
image: node:10.18.0-jessie
10+
steps:
11+
- name: log node version
12+
run: node -v
13+
14+
# This will run the image node:12.14.1-alpine3.10 which runs instead of the other one specified above
15+
- name: Step with docker
16+
uses: docker://node:12.14.1-alpine3.10
17+
with:
18+
entrypoint: '/usr/local/bin/node'
19+
args: '-v'
20+
521
node-docker:
622
runs-on: ubuntu-latest
723

0 commit comments

Comments
 (0)