Merge pull request #2 from enzops/main #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy phpMyAdmin | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Kubernetes context | |
run: | | |
mkdir -p ${HOME}/.kube | |
echo "${{ secrets.KUBECONFIG }}" > ${HOME}/.kube/config | |
- name: Install Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: v3.12.0 | |
- name: Deploy phpMyAdmin with Helm | |
run: | | |
helm repo add bitnami https://charts.bitnami.com/bitnami | |
helm repo update | |
helm upgrade --install phpmyadmin bitnami/phpmyadmin --version 18.0.0 \ | |
--namespace mysql \ | |
--set ingress.enabled=true \ | |
--set ingress.hostname="${{ secrets.PHPMYADMIN_HOST }}" \ | |
--set ingress.tls=true |