added workflow for automation of docker image
Some checks failed
Docker Image CI / build_and_push (push) Has been cancelled
Some checks failed
Docker Image CI / build_and_push (push) Has been cancelled
This commit is contained in:
2
.env
Normal file
2
.env
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
SOURCE_API_URL=YOUR_MALOJA_API_URL
|
||||||
|
SOURCE_API_KEY=YOUR_API_KEY
|
25
.gitea/workflows/docker.yml
Normal file
25
.gitea/workflows/docker.yml
Normal file
@@ -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
|
@@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
lidarr-importer-api:
|
api:
|
||||||
image: gitea.kansaigaijin.com/kansaigaijin/majola-lidarr-importer:latest
|
build: .
|
||||||
container_name: maloja-lidarr-importer-api
|
container_name: maloja-lidarr-importer-api
|
||||||
volumes:
|
volumes:
|
||||||
- ./logs:/app/logs
|
- ./logs:/app/logs
|
||||||
|
Reference in New Issue
Block a user