feat: update build and push workflow to use Helm for deployment
This commit is contained in:
@@ -27,6 +27,12 @@ jobs:
|
||||
- run: docker build -t kube-reg.fairfaxmedia.net/papi/svc1:${{ steps.extract_branch.outputs.branch }} . # Build the Docker image
|
||||
- run: docker push kube-reg.fairfaxmedia.net/papi/svc1:${{ steps.extract_branch.outputs.branch }} # Push the Docker image
|
||||
- name: 'Deploy'
|
||||
uses: deliverybot/helm@v1
|
||||
with:
|
||||
release: 'papi'
|
||||
namespace: 'default'
|
||||
chart: 'papi-helm/Chart.yaml'
|
||||
token: '${{ github.token }}'
|
||||
value-files: ['papi-helm/values.yaml']
|
||||
env:
|
||||
KUBECONFIG_FILE: '${{ secrets.KUBECONFIG }}'
|
||||
run: helm upgrade papi ./papi-helm/ --install --namespace default --set image.tag=${{ steps.extract_branch.outputs.branch }} --kubeconfig $KUBECONFIG_FILE
|
||||
|
||||
Reference in New Issue
Block a user