-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (42 loc) · 1.1 KB
/
push.yml
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
34
35
36
37
38
39
40
41
42
43
44
on: push
name: Build and publish
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install
uses: actions/npm@59b64a598378f31e49cb76f27d6f3312b582f680
with:
args: install
- name: Build
uses: actions/npm@59b64a598378f31e49cb76f27d6f3312b582f680
with:
args: run build --prod
- uses: actions/upload-artifact@master
with:
name: dist
path: ./dist
dockerize:
name: Dockerize
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@master
- uses: actions/download-artifact@master
with:
name: dist
path: ./dist
- name: Docker login
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
echo "$DOCKER_PASSWORD" | docker login -u $DOCKER_USERNAME --password-stdin
- name: Docker build
run: |
docker build -t scubakay/f10k:latest .
- name: Docker deploy
run: |
docker push scubakay/f10k:latest