next-terminal/.github/workflows/docker.yml
2021-01-04 22:24:17 +08:00

33 lines
739 B
YAML

name: Docker image
on:
push:
branches:
- "master"
paths-ignore:
- ".gitignore"
- "*.md"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: |
cd web
npm install
npm run build
- name: Log into registry
run: echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
- name: Build and push image
run: |
docker build -t ghcr.io/${{ github.repository_owner }}/next-terminal -f Dockerfile .
docker push ghcr.io/${{ github.repository_owner }}/next-terminal