Merge pull request #5 from gractwo/dzioba-dev

Auto deploy Hotfix
This commit is contained in:
Stanisław Dzioba
2022-06-20 20:49:56 +02:00
committed by GitHub

View File

@@ -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 }}