-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.27 KB
/
ci-production-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
name: Production Deploy
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
on:
workflow_dispatch:
jobs:
build:
name: Build All
permissions: write-all
uses: jacobbrewer1/puppet-summary/.github/workflows/ci-docker.yml@main
secrets: inherit
deploy:
name: Deploy Puppet Summary
runs-on: ubuntu-latest
needs: [ build ]
environment: production
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get commit
id: get_commit
run: echo "sha_short_deploy=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_OUTPUT
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: main
repository: Jacobbrewer1/supporting-charts
path: ./charts
token: ${{ secrets.PAT_TOKEN }}
- name: Deploy Puppet Summary
uses: WyriHaximus/github-action-helm3@v3
with:
exec: helm upgrade --install puppet-summary ./charts --values charts/valueFiles/prod-1/puppet-summary.yaml --set image.tag=${{ steps.get_commit.outputs.sha_short_deploy }}
kubeconfig: '${{ secrets.KUBE_CONFIG }}'