-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 1.11 KB
/
deploy-production.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
name: Deploy to Production
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
deploy-production:
name: Deploy production
environment: production
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build & tag docker image
uses: AplinkosMinisterija/reusable-workflows/.github/actions/docker-build-tag-push@main
with:
environment: production
push: true
- name: Trigger deploy
uses: AplinkosMinisterija/reusable-workflows/.github/actions/trigger-workflow-and-wait@main
with:
application-id: ${{ secrets.TVARKAU_LIETUVA_TRIGGER_DEPLOY_APPLICATION_ID }}
application-private-key: ${{ secrets.TVARKAU_LIETUVA_TRIGGER_DEPLOY_APPLICATION_PRIVATE_KEY }}
repository: ${{ secrets.TVARKAU_LIETUVA_TRIGGER_DEPLOY_REPOSITORY }}
workflow-file-name: ${{ secrets.TVARKAU_LIETUVA_TRIGGER_DEPLOY_WORKFLOW_FILE_NAME }}
workflow-payload: '{"environment": "production"}'