Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .github/workflows/deploy-development.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# This is a reusable workflow unit which can be used to deploy to heroku.
# To deploy, add the following to your workflow
#deploy:
# needs: [calculate-version, assign-semver, build-and-publish-images]
# uses: ./.github/workflows/deploy-development.yml
# secrets: inherit
# with:
# repository: # heroku repository to push to
# app: runner
# tag: ${{ needs.assign-semver.outputs.SEMVER }}

name: Deploy Development Environment

on:
Expand All @@ -9,6 +20,9 @@ on:
tag:
description: "Tag to use for heroku deployments"
required: true
repository:
required: true
description: "The heroku repository to push to"
workflow_call:
inputs:
app:
Expand All @@ -20,7 +34,6 @@ on:
required: true
type: string


jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -36,12 +49,12 @@ jobs:
run: docker pull ghcr.io/xgovformbuilder/digital-form-builder-${{ inputs.app }}:${{ inputs.tag }}

- name: Tag Image
run: docker tag ghcr.io/xgovformbuilder/digital-form-builder-${{ inputs.app }}:${{ inputs.tag }} registry.heroku.com/digital-form-builder-${{ inputs.app }}/web
run: docker tag ghcr.io/xgovformbuilder/digital-form-builder-${{ inputs.app }}:${{ inputs.tag }} ${{ inputs.repository }}

- name: Push to Heroku Registry
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_DEV_API_KEY }}
run: docker push registry.heroku.com/digital-form-builder-${{ inputs.app }}/web
run: docker push ${{ inputs.repository }}

- name: Release
env:
Expand Down
48 changes: 0 additions & 48 deletions .github/workflows/deploy-fcdo.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/main--lint-unit-build-and-publish-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,6 @@ jobs:
publish: true
app: ${{matrix.app}}

deploy:
needs: [calculate-version, assign-semver, build-and-publish-images]
uses: ./.github/workflows/deploy-development.yml
secrets: inherit
strategy:
matrix:
app: [designer, runner]
with:
app: ${{ matrix.app }}
tag: ${{ needs.assign-semver.outputs.SEMVER }}

tag-branch:
runs-on: ubuntu-latest
needs: [calculate-version, assign-semver, build-and-publish-images]
Expand Down
90 changes: 0 additions & 90 deletions .github/workflows/smoke-tests-heroku.yml

This file was deleted.

Loading