Compare commits
2 Commits
c1d0b31e30
...
8ac215f948
| Author | SHA1 | Date | |
|---|---|---|---|
| 8ac215f948 | |||
| 0e23674dc9 |
@@ -11,29 +11,23 @@ jobs:
|
||||
update-helm-deployment:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Use Docker image with Helm, Helmfile, and kubectl pre-installed
|
||||
container:
|
||||
image: jmccann/helmfile:latest
|
||||
|
||||
steps:
|
||||
# Step 1: Checkout the repository
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Step 2: Set up Helm and Helmfile
|
||||
- name: Install Helm
|
||||
run: |
|
||||
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
|
||||
|
||||
- name: Install Helmfile
|
||||
run: |
|
||||
curl -L https://github.com/roboll/helmfile/releases/download/v0.144.0/helmfile_linux_amd64 -o /usr/local/bin/helmfile
|
||||
chmod +x /usr/local/bin/helmfile
|
||||
|
||||
# Step 3: Set up Kubernetes configuration (optional - depends on where your cluster is)
|
||||
# Step 2: Set up Kubernetes configuration (optional - depends on where your cluster is)
|
||||
- name: Set up kubeconfig
|
||||
env:
|
||||
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }} # Store your kubeconfig in Gitea Secrets
|
||||
run: |
|
||||
echo "$KUBE_CONFIG_DATA" | base64 -d > ~/.kube/config
|
||||
|
||||
# Step 4: Run Helmfile Sync
|
||||
# Step 3: Run Helmfile Sync
|
||||
- name: Deploy with Helmfile
|
||||
run: |
|
||||
helmfile sync
|
||||
|
||||
Reference in New Issue
Block a user