forked from ecamp/ecamp3
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.02 KB
/
deployment-devel.yml
File metadata and controls
42 lines (38 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI + CD for devel
on:
push:
branches:
- devel
workflow_dispatch:
inputs:
action:
description: "Choose action"
type: choice
required: true
default: diff
options:
- diff
- deploy
jobs:
continuous-integration:
name: "Continuous integration"
uses: ./.github/workflows/continuous-integration.yml
build-and-push:
name: Build and push docker images
needs: continuous-integration
uses: ./.github/workflows/reusable-build-and-push.yml
with:
tag: latest
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-ecamp3-deployment.yml
with:
name: dev
env: dev
action: ${{ github.event.inputs.action || 'deploy' }}
secrets: inherit