diff --git a/.github/workflows/docker.yml b/.github/workflows/publish-docker-image.yaml similarity index 98% rename from .github/workflows/docker.yml rename to .github/workflows/publish-docker-image.yaml index f0579e7..ab3f6c1 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/publish-docker-image.yaml @@ -1,9 +1,7 @@ -name: Build Docker +name: Build Docker Images on: - push: - tags: - - '*' + workflow_call: jobs: sqlite: diff --git a/.github/workflows/release-on-schedule.yml b/.github/workflows/release-on-schedule.yml new file mode 100644 index 0000000..de4e426 --- /dev/null +++ b/.github/workflows/release-on-schedule.yml @@ -0,0 +1,12 @@ +name: Release (Monthly) + +on: + workflow_dispatch: + schedule: + # On the 15th of the month + - cron: '30 5 15 * *' + +jobs: + release: + uses: GothenburgBitFactory/taskchampion-sync-server/.github/workflows/publish-docker-image.yaml + secrets: inherit diff --git a/.github/workflows/release-on-tag.yml b/.github/workflows/release-on-tag.yml new file mode 100644 index 0000000..14e7af5 --- /dev/null +++ b/.github/workflows/release-on-tag.yml @@ -0,0 +1,11 @@ +name: Release (Tag) + +on: + push: + tags: + - '*' + +jobs: + release: + uses: GothenburgBitFactory/taskchampion-sync-server/.github/workflows/publish-docker-image.yaml + secrets: inherit