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
13 changes: 13 additions & 0 deletions .github/actions/setup-helmfile/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 'Setup helmfile'
description: 'Sets up helmfile in /usr/local/bin/helmfile'
runs:
using: "composite"
steps:
- name: install helmfile
run: |
curl -L https://github.com/helmfile/helmfile/releases/download/v1.1.3/helmfile_1.1.3_linux_amd64.tar.gz -o helmfile.tar.gz
tar -xvf /tmp/helmfile.tar.gz
mv helmfile /usr/local/bin
chmod +x /usr/local/bin/helmfile
working-directory: /tmp
shell: bash
14 changes: 12 additions & 2 deletions .github/workflows/deployment-devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ on:
branches:
- devel
workflow_dispatch:
inputs:
action:
description: "Choose action"
type: choice
required: true
default: diff
options:
- diff
- deploy

jobs:
continuous-integration:
Expand All @@ -25,8 +34,9 @@ jobs:
upgrade-or-install-deployment:
name: Upgrade or install deployment
needs: build-and-push
uses: ./.github/workflows/reusable-dev-deployment.yml
uses: ./.github/workflows/reusable-ecamp3-deployment.yml
with:
name: dev
env: dev
secrets: inherit
action: ${{ github.event.inputs.action || 'deploy' }}
secrets: inherit
13 changes: 12 additions & 1 deletion .github/workflows/deployment-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ name: CD for feature branches
on:
pull_request_target:
types: [opened, reopened, labeled, synchronize]
workflow_dispatch:
inputs:
action:
description: "Choose action"
type: choice
required: true
default: diff
options:
- diff
- deploy

concurrency:
group: ${{ github.workflow}}-${{ github.event.pull_request.number }}
Expand All @@ -23,11 +33,12 @@ jobs:
upgrade-or-install-deployment:
name: Upgrade or install deployment
needs: build-and-push
uses: ./.github/workflows/reusable-dev-deployment.yml
uses: ./.github/workflows/reusable-ecamp3-deployment.yml
with:
name: pr${{ github.event.pull_request.number }}
sha: ${{ github.event.pull_request.head.sha }}
env: feature-branch
pr-number: ${{ github.event.pull_request.number }}
dropDBOnUninstall: true
action: ${{ github.event.inputs.action || 'deploy' }}
secrets: inherit
15 changes: 14 additions & 1 deletion .github/workflows/deployment-stage-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ on:
- staging
- prod
workflow_dispatch:
inputs:
action:
description: "Choose action"
type: choice
required: true
default: diff
options:
- diff
- deploy

jobs:
build-and-push:
Expand All @@ -24,5 +33,9 @@ jobs:
upgrade-or-install-deployment:
name: Upgrade or install deployment
needs: build-and-push
uses: ./.github/workflows/reusable-stage-prod-deployment.yml
uses: ./.github/workflows/reusable-ecamp3-deployment.yml
with:
name: ${{ github.ref_name }}
env: ${{ github.ref_name }}
action: ${{ github.event.inputs.action || 'deploy' }}
secrets: inherit
11 changes: 10 additions & 1 deletion .github/workflows/restore-backup-dev-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ on:
description: The environment, if name is dev then dev, else feature-branch
required: true
default: dev
action:
description: "Choose action"
type: choice
required: true
default: diff
options:
- diff
- deploy


jobs:
Expand All @@ -36,12 +44,13 @@ jobs:
upgrade-or-install-deployment:
name: Upgrade or install deployment
needs: build-and-push
uses: ./.github/workflows/reusable-dev-deployment.yml
uses: ./.github/workflows/reusable-ecamp3-deployment.yml
with:
name: ${{ inputs.pr-number == null && 'dev' || format('pr{0}', inputs.pr-number) }}
sha: ${{ github.sha }}
env: ${{ inputs.env }}
pr-number: ${{ inputs.pr-number }}
dropDBOnUninstall: ${{ inputs.pr-number != null }}
restoreSourceFile: ${{ inputs.restoreSourceFile }}
action: ${{ github.event.inputs.action }}
secrets: inherit
12 changes: 11 additions & 1 deletion .github/workflows/restore-backup-stage-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ on:
and restore the database with the given backup file?
Repeat the branch name to confirm. (e.g. staging or prod)
required: true
action:
description: "Choose action"
type: choice
required: true
default: diff
options:
- diff
- deploy

jobs:
check-parameters:
Expand Down Expand Up @@ -46,7 +54,9 @@ jobs:
upgrade-or-install-deployment:
name: Upgrade or install deployment
needs: build-and-push
uses: ./.github/workflows/reusable-stage-prod-deployment.yml
uses: ./.github/workflows/reusable-ecamp3-deployment.yml
with:
restoreSourceFile: ${{ inputs.restoreSourceFile }}
env: ${{ github.ref_name }}
action: ${{ github.event.inputs.action }}
secrets: inherit
190 changes: 0 additions & 190 deletions .github/workflows/reusable-dev-deployment.yml

This file was deleted.

Loading