-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 1.53 KB
/
deploy.yml
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
43
44
45
46
47
48
49
50
51
52
name: Manual deployment
on:
workflow_dispatch:
inputs:
environment:
description: "Deploy environment ( development, test, preprod or production )"
required: true
default: development
type: choice
options:
- development
sha:
description: Commit sha to be deployed
required: true
default: 588bfd4567e53f6b809d5ed107dc70b3d040710a
type: choice
options:
- 588bfd4567e53f6b809d5ed107dc70b3d040710a
env:
CONTAINER_REGISTRY: ghcr.io
jobs:
deploy_environment:
name: Deploy to development environment
runs-on: ubuntu-latest
environment:
name: development
steps:
- uses: actions/checkout@v4
- name: Docker image tag
id: image
run: |
echo ::set-output name=tag::$CONTAINER_REGISTRY/$(echo $GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]'):$INPUT_GITHUB_SHA
env:
CONTAINER_REGISTRY: ${{ env.CONTAINER_REGISTRY }}
INPUT_GITHUB_SHA: 588bfd4567e53f6b809d5ed107dc70b3d040710a
shell: bash
- uses: ./.github/workflows/actions/deploy
id: deploy
with:
environment: development
docker_image: ${{ steps.image.outputs.tag }}
azure-credentials: ${{ secrets.AZURE_CREDENTIALS }}
arm-access-key: ${{ secrets.ARM_ACCESS_KEY }}
- uses: ./.github/workflows/actions/smoke-test
id: smoke-test
with:
environment: development
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}