diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..ee6c63e --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 'castus.bot@gmail.com' + git commit -am "feat: Deploy ${{ github.event.client_payload.image_tag }}" + git push diff --git a/values.yaml b/values.yaml index 20490cc..f93d96e 100644 --- a/values.yaml +++ b/values.yaml @@ -7,7 +7,6 @@ replicaCount: 1 image: repository: c4stus/lights-api pullPolicy: IfNotPresent - tag: "sha-8e477df" imagePullSecrets: [] nameOverride: ""