auto deploy nienawidze gractwa

This commit is contained in:
Stanislaw
2022-06-20 21:40:20 +02:00
parent 7a7158a2c9
commit f1219e5a6f
3 changed files with 10 additions and 5 deletions

View File

@@ -11,7 +11,11 @@ jobs:
build:
runs-on: self-hosted
steps:
- name: Deploy
- uses: actions/checkout@v3
- name: Build image
run: docker build -t ${{ github.repository }} .
- name: Deploy image
run: |
npm install
npm run build
docker stop ${{ github.event.repository.name }} || true
docker rm ${{ github.event.repository.name }} || true
docker run -d -e ${{ github.repository }} -p 3000:3000