Skip to content
Closed
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
24 changes: 12 additions & 12 deletions .github/workflows/deployment-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,31 @@ 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 }}
cancel-in-progress: true

jobs:
build-and-push:
if: contains(github.event.pull_request.labels.*.name, 'deploy!')
name: Build and push docker images
uses: ./.github/workflows/reusable-build-and-push.yml
with:
sha: ${{ github.event.pull_request.head.sha }}
secrets:
DOCKER_HUB_USERNAME: ${{ vars.DOCKER_HUB_USERNAME }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

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
2 changes: 1 addition & 1 deletion .github/workflows/restore-backup-dev-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ 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 }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/restore-backup-stage-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ 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 }}
secrets: inherit
190 changes: 0 additions & 190 deletions .github/workflows/reusable-dev-deployment.yml

This file was deleted.

Loading
Loading