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