Skip to content

Commit

Permalink
dc lorawan: prepare for production
Browse files Browse the repository at this point in the history
  • Loading branch information
luhodaan committed Feb 10, 2025
1 parent 3aa9b28 commit cf83d81
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion .github/workflows/dc-lorawan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,35 @@ jobs:
aws-access-key-id: ${{ secrets[vars.AWS_KEY_ID] }}
aws-secret-access-key: ${{ secrets[vars.AWS_KEY_SECRET] }}
aws-eks-cluster-name: aws-main-eu-01
aws-region: eu-west-1
aws-region: eu-west-1

deploy-lorawan-prod:
if: github.ref == 'refs/heads/prod'
needs: build
runs-on: ubuntu-22.04
concurrency: dc-lorawan-prod
environment: prod
steps:
- name: Checkout source code
uses: actions/checkout@v4

- name: Customize values.yaml
working-directory: ${{ env.WORKING_DIRECTORY }}
run: |
yq -i '.image.repository = "${{ env.DOCKER_IMAGE }}"' ${{ env.VALUES_YAML }}
yq -i '.image.tag = "${{ env.DOCKER_TAG }}"' ${{ env.VALUES_YAML }}
yq -i '.image.pullPolicy = "IfNotPresent"' ${{ env.VALUES_YAML }}
yq -i '.envSecret.LORAWAN_PASSWORD = "${{ secrets.LORAWAN_PASSWORD }}"' ${{ env.VALUES_YAML }}

- name: Deploy on cluster
uses: noi-techpark/github-actions/helm-deploy@v2
with:
k8s-name: dc-lorawan
k8s-namespace: collector
chart-path: helm/generic-collector
values-file: ${{ env.WORKING_DIRECTORY}}/${{ env.VALUES_YAML }}
aws-access-key-id: ${{ secrets[vars.AWS_KEY_ID] }}
aws-secret-access-key: ${{ secrets[vars.AWS_KEY_SECRET] }}
aws-eks-cluster-name: aws-main-eu-01
aws-region: eu-west-1

0 comments on commit cf83d81

Please sign in to comment.