actions
This commit is contained in:
parent
43452c7c14
commit
d89760702a
3 changed files with 27 additions and 2 deletions
25
.gitea/workflows/build.yml
Normal file
25
.gitea/workflows/build.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Docker
|
||||
run: curl -fsSL https://get.docker.com | sh
|
||||
|
||||
- name: Log in to Docker registry
|
||||
run: echo "${{ secrets.registry_password }}" | docker login -u "jmarya" --password-stdin git.hydrar.de
|
||||
|
||||
- name: Build and push Docker image
|
||||
run: |
|
||||
docker build -t git.hydrar.de/jmarya/mirrord:latest .
|
||||
docker push git.hydrar.de/jmarya/mirrord:latest
|
|
@ -6,4 +6,4 @@ services:
|
|||
- 8080:8080
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- ./sample.conf:/sample.conf
|
||||
- ./sample.conf:/mirrord.conf
|
||||
|
|
|
@ -17,7 +17,7 @@ async fn main() -> std::io::Result<()> {
|
|||
|
||||
let proxym = {
|
||||
let config: config::Config =
|
||||
toml::from_str(&std::fs::read_to_string("./sample.conf").unwrap()).unwrap();
|
||||
toml::from_str(&std::fs::read_to_string("./mirrord.conf").unwrap()).unwrap();
|
||||
config.to_proxy()
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue