diff --git a/.github/workflows/scheduled_tasks.yml b/.github/workflows/scheduled_tasks.yml index a5f8e867..6d3d384e 100644 --- a/.github/workflows/scheduled_tasks.yml +++ b/.github/workflows/scheduled_tasks.yml @@ -4,7 +4,7 @@ on: push: branches: [main] paths: - - 'scheduled_tasks/**' + - 'services/scheduled_tasks/**' jobs: deploy: @@ -24,7 +24,7 @@ jobs: with: # https://github.com/docker/build-push-action/issues/378 context: . - file: scheduled_tasks/Dockerfile + file: services/scheduled_tasks/Dockerfile push: true tags: | ghcr.io/pluralkit/scheduled_tasks:${{ env.BRANCH_NAME }} diff --git a/scheduled_tasks/Dockerfile b/services/scheduled_tasks/Dockerfile similarity index 82% rename from scheduled_tasks/Dockerfile rename to services/scheduled_tasks/Dockerfile index 032f188e..2a3c5481 100644 --- a/scheduled_tasks/Dockerfile +++ b/services/scheduled_tasks/Dockerfile @@ -4,7 +4,7 @@ RUN apk add go WORKDIR /build -COPY scheduled_tasks/ /build +COPY services/scheduled_tasks/ /build RUN go build . diff --git a/scheduled_tasks/db.go b/services/scheduled_tasks/db.go similarity index 100% rename from scheduled_tasks/db.go rename to services/scheduled_tasks/db.go diff --git a/scheduled_tasks/go.mod b/services/scheduled_tasks/go.mod similarity index 100% rename from scheduled_tasks/go.mod rename to services/scheduled_tasks/go.mod diff --git a/scheduled_tasks/go.sum b/services/scheduled_tasks/go.sum similarity index 100% rename from scheduled_tasks/go.sum rename to services/scheduled_tasks/go.sum diff --git a/scheduled_tasks/main.go b/services/scheduled_tasks/main.go similarity index 100% rename from scheduled_tasks/main.go rename to services/scheduled_tasks/main.go diff --git a/scheduled_tasks/repo.go b/services/scheduled_tasks/repo.go similarity index 100% rename from scheduled_tasks/repo.go rename to services/scheduled_tasks/repo.go diff --git a/scheduled_tasks/tasks.go b/services/scheduled_tasks/tasks.go similarity index 100% rename from scheduled_tasks/tasks.go rename to services/scheduled_tasks/tasks.go