-
Notifications
You must be signed in to change notification settings - Fork 11
45 lines (44 loc) · 1.56 KB
/
openshift-imagetagging.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
# Deploy an artifact onto Test, or Prod
name: Trigger deployment to test and prod Openshift environnment by Image stream re-tagging and labelling pod
on:
workflow_dispatch:
inputs:
app_name:
required: true
description: App to be deployed
type: choice
options:
- dps-email-poller
- dps-email-worker
- dps-notification-service
- dps-payment-service
- dps-validation-service
- figaro-validation-service
- spd-notification-worker
- vips-notification-worker
source_image_tag:
required: true
description: What is the tag that is going to be promoted?
type: choice
options:
- dev
- test
target_environment:
required: true
description: What is the targeted environment?
type: choice
options:
- test
- prod
jobs:
promote_image:
uses: SierraSystems/reusable-workflows/.github/workflows/openshift-tag-image.yml@main
with:
image_stream_name: "${{ github.event.inputs.app_name }}"
source_image_tag: "${{ github.event.inputs.source_image_tag }}"
image_tags: "${{ github.event.inputs.target_environment }}"
secrets:
openshift_namespace: "${{ secrets.OPENSHIFT_LICENSE_PLATE_SILVER }}-tools"
openshift_server_url: "${{ secrets.OPENSHIFT_SERVER_URL_SILVER }}"
openshift_token: "${{ secrets.OPENSHIFT_SA_PIPELINE_TOKEN_SILVER }}"
openshift_external_repository: "${{ secrets.OPENSHIFT_EXTERNAL_REPOSITORY_SILVER }}"