Deploy with docker-compose (#1)
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
This commit is contained in:

committed by
GitHub

parent
3ad1ad53fc
commit
c1b9273e0c
4
.github/workflows/build.yaml
vendored
4
.github/workflows/build.yaml
vendored
@ -1,10 +1,8 @@
|
||||
name: Rust
|
||||
name: Build & test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
16
.github/workflows/deploy.yml
vendored
Normal file
16
.github/workflows/deploy.yml
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
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
|
Reference in New Issue
Block a user