diff --git a/.github/docker-image.yml b/.github/docker-image.yml new file mode 100644 index 0000000..cd177d6 --- /dev/null +++ b/.github/docker-image.yml @@ -0,0 +1,19 @@ +name: Docker Image CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Publish to Registry + uses: elgohr/Publish-Docker-Github-Action@v5 + with: + name: frishi/threetwo-acquisition-service + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} \ No newline at end of file diff --git a/services/api.service.ts b/services/api.service.ts index ab918aa..5a9c530 100644 --- a/services/api.service.ts +++ b/services/api.service.ts @@ -3,7 +3,7 @@ import { Service, ServiceBroker } from "moleculer"; import ApiGateway from "moleculer-web"; export default class ApiService extends Service { - public constructor(broker: ServiceBroker) { + constructor(broker: ServiceBroker) { super(broker); this.parseServiceSchema({ name: "api", diff --git a/services/prowlarr.service.ts b/services/prowlarr.service.ts index b1adc01..83412c7 100644 --- a/services/prowlarr.service.ts +++ b/services/prowlarr.service.ts @@ -1,10 +1,10 @@ -"use strict"; + import { Context, Service, ServiceBroker, ServiceSchema, Errors } from "moleculer"; import axios from "axios"; export default class ProwlarrService extends Service { // @ts-ignore - public constructor( + constructor( public broker: ServiceBroker, schema: ServiceSchema<{}> = { name: "prowlarr" }, ) {