add /splashes/:id patch endpoint #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
branches: ["master"] | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build image | |
run: docker build -t rustapi --build-arg GITHUB_SHA=${{ github.sha }} . | |
- name: Run image | |
run: | | |
docker stop rustapi || true | |
docker rm rustapi || true | |
docker run -d -p 2004:2004 -v sqlite:/sqlite -e DBPATH=/sqlite/sqlite.db --name rustapi --restart always rustapi |