forked from abhinavdhasmana/github-action-example-node
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 960 Bytes
/
push.yml
File metadata and controls
33 lines (33 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
on: push
name: npm build, lint, test and publish
jobs:
build-and-publish:
name: build and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: npm install
uses: actions/npm@master
with:
args: install
- name: npm test
uses: actions/npm@master
with:
args: run test
- name: npm lint
uses: actions/npm@master
with:
args: run lint
- name: docker build
uses: actions/docker/cli@master
with:
args: build -t abhinavdhasmana/github-action-example-node .
- name: docker login
uses: actions/docker/login@master
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
- name: docker push
uses: actions/docker/cli@master
with:
args: push abhinavdhasmana/github-action-example-node