diff --git a/.env b/.env new file mode 100644 index 0000000..04ff9d7 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +SOURCE_API_URL=YOUR_MALOJA_API_URL +SOURCE_API_KEY=YOUR_API_KEY diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml new file mode 100644 index 0000000..3029bc7 --- /dev/null +++ b/.gitea/workflows/docker.yml @@ -0,0 +1,25 @@ +name: Docker Image CI + +on: + push: + branches: + - master + +jobs: + build_and_push: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Log in to Gitea Container Registry + uses: docker/login-action@v2 + with: + registry: gitea.kansaigaijin.com + username: ${{ gitea.actor }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push Docker image + run: | + docker build -t gitea.kansaigaijin.com/kansaigaijin/majola-lidarr-importer:latest . + docker push gitea.kansaigaijin.com/kansaigaijin/majola-lidarr-importer:latest \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index b62b8ed..7d77891 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ services: - lidarr-importer-api: - image: gitea.kansaigaijin.com/kansaigaijin/majola-lidarr-importer:latest + api: + build: . container_name: maloja-lidarr-importer-api volumes: - ./logs:/app/logs