
Deploy using docker-compose and GitHub Actions. Created a simple get endpoint to check if server is running on / Updated address from 127.0.0.1 to 0.0.0.0
17 lines
288 B
YAML
17 lines
288 B
YAML
name: Deploy image to Docker Hub and pull it
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
deploy:
|
|
name: Build and run
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
|
- name: Check out the repo
|
|
uses: actions/checkout@v4
|
|
- name: Run
|
|
run: docker-compose up -d --build
|