From ab986aeb577de76cddeb928c757363dc4c874ba5 Mon Sep 17 00:00:00 2001 From: miguelvizdev Date: Wed, 17 Nov 2021 09:20:03 +0100 Subject: [PATCH 1/2] converted workflow to yaml --- .github/workflows/main.yaml | 82 +++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..39a5486 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,82 @@ +name: Deploy to Heroku + +on: + push: + resolves: + - "release registry" + - "release hooks" + - "release reaper" + +jobs: + only master branch: + runs-on: ubuntu-latest + uses: actions/bin/filter@master + with: + args: "branch master" + + heroku login: + needs: only master branch + uses: actions/heroku@master + with: + args: container:login + secrets: + - ${{secrets.HEROKU_API_KEY}} + + build registry: + needs: heroku login + uses: actions/docker/cli@master + with: + args: "build -t registry.heroku.com/ttlsh/web registry" + + push registry: + needs: build registry + with: + args: "push registry.heroku.com/ttlsh/web" + + release registry: + needs: push registry + uses: actions/heroku@master + with: + args: "container:release -a ttlsh web" + secrets: + - ${{secrets.HEROKU_API_KEY}} + + build hooks: + needs: heroku login + uses: actions/docker/cli@master + with: + args: "build -f hooks/Dockerfile.hooks -t registry.heroku.com/ttlsh-hooks/web hooks" + + push hooks: + needs: build hooks + uses: actions/docker/cli@master + with: + args: "push registry.heroku.com/ttlsh-hooks/web" + + release hooks: + needs: push hooks + uses: actions/heroku@master + with: + args: "container:release -a ttlsh-hooks web" + secrets: + - ${{secrets.HEROKU_API_KEY}} + + build reaper: + needs: heroku login + uses: actions/docker/cli@master + with: + args: "build -f hooks/Dockerfile.reap -t registry.heroku.com/ttlsh-hooks/reap hooks" + + push reaper: + needs: build reaper + uses: actions/docker/cli@master + with: + args: "push registry.heroku.com/ttlsh-hooks/reap" + + release reaper: + needs: push reaper + uses: actions/heroku@master + with: + args: "container:release -a ttlsh-hooks reap" + secrets: + - ${{secrets.HEROKU_API_KEY}} \ No newline at end of file From e74d8cde56301353f8a57efb203fe5e88afb10e8 Mon Sep 17 00:00:00 2001 From: miguelvizdev Date: Wed, 17 Nov 2021 09:37:12 +0100 Subject: [PATCH 2/2] add dependabot config --- .github/dependabot.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/dependabot.yaml diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..94e04b5 --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,14 @@ +version: 2 + +updates: + + # # Npm + - package-ecosystem: "npm" + directory: "/cloudflare" + schedule: + interval: "daily" + + - package-ecosystem: "npm" + directory: "/hooks" + schedule: + interval: "daily" \ No newline at end of file