Skip to content

Commit

Permalink
ci: Add deploy workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
castus committed Oct 28, 2023
1 parent a0f3b1e commit c8c8c48
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy the next version of charts with a image tag

on:
repository_dispatch:
types: [deploy]

jobs:
ping-pong:
runs-on: ubuntu-latest
steps:
- name: Event Information
run: |
echo "Event '${{ github.event.action }}' received with image tag: '${{ github.event.client_payload.image_tag }}'"
- uses: azure/setup-helm@v3
with:
version: 'v3.13.1'
id: install
- name: Checkout
uses: actions/checkout@v3
- name: Generate template
run: |
helm template . --set image.tag=${{ github.event.client_payload.image_tag }} > ./generated/manifest.yml
- name: Commit report
run: |
git config --global user.name 'Deploy bot'
git config --global user.email '[email protected]'
git commit -am "feat: Deploy ${{ github.event.client_payload.image_tag }}"
git push
1 change: 0 additions & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ replicaCount: 1
image:
repository: c4stus/lights-api
pullPolicy: IfNotPresent
tag: "sha-8e477df"

imagePullSecrets: []
nameOverride: ""
Expand Down

0 comments on commit c8c8c48

Please sign in to comment.