10
.github/workflows/deploy.yaml
vendored
10
.github/workflows/deploy.yaml
vendored
@@ -11,11 +11,7 @@ jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build image
|
||||
run: docker build -t ${{ github.repository }} .
|
||||
- name: Deploy image
|
||||
- name: Deploy
|
||||
run: |
|
||||
docker stop ${{ github.event.repository.name }} || true
|
||||
docker rm ${{ github.event.repository.name }} || true
|
||||
docker run -d -e ${{ github.repository }}
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
Reference in New Issue
Block a user