Deploy to Dev Cluster Fixes (#542)
fix typos for on-demand k8s cluster deployment via github action trigger
This commit is contained in:
		
							parent
							
								
									e98df10dad
								
							
						
					
					
						commit
						e8b90b7c3e
					
				
							
								
								
									
										25
									
								
								.github/workflows/deploy-dev.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										25
									
								
								.github/workflows/deploy-dev.yaml
									
									
									
									
										vendored
									
									
								
							| @ -2,9 +2,6 @@ name: Deploy to Dev Cluster | |||||||
| 
 | 
 | ||||||
| on: | on: | ||||||
|   workflow_dispatch: |   workflow_dispatch: | ||||||
|     inputs: |  | ||||||
|       registry: registry.digitalocean.com |  | ||||||
|       registry_path: registry.digitalocean.com/btrix |  | ||||||
| 
 | 
 | ||||||
| jobs: | jobs: | ||||||
|   build_do_images: |   build_do_images: | ||||||
| @ -18,10 +15,10 @@ jobs: | |||||||
|         with: |         with: | ||||||
|           driver-opts: network=host |           driver-opts: network=host | ||||||
| 
 | 
 | ||||||
|         name: Login to Regsitry |       - name: Login to Regsitry | ||||||
|         uses: docker/login-action@v2 |         uses: docker/login-action@v2 | ||||||
|         with: |         with: | ||||||
|           registry: ${{ inputs.registry }} |           registry: ${{ secrets.DO_REGISTRY }} | ||||||
|           username: ${{ secrets.DO_API_TOKEN }} |           username: ${{ secrets.DO_API_TOKEN }} | ||||||
|           password: ${{ secrets.DO_API_TOKEN }} |           password: ${{ secrets.DO_API_TOKEN }} | ||||||
| 
 | 
 | ||||||
| @ -30,7 +27,7 @@ jobs: | |||||||
|         with: |         with: | ||||||
|           context: backend |           context: backend | ||||||
|           push: true |           push: true | ||||||
|           tags: ${{ inputs.registry_path }}/webrecorder/browsertrix-backend:latest |           tags: ${{ secrets.DO_REGISTRY_PATH }}/webrecorder/browsertrix-backend:latest | ||||||
|           cache-from: type=gha,scope=backend |           cache-from: type=gha,scope=backend | ||||||
|           cache-to: type=gha,scope=backend,mode=max |           cache-to: type=gha,scope=backend,mode=max | ||||||
| 
 | 
 | ||||||
| @ -39,19 +36,19 @@ jobs: | |||||||
|         with: |         with: | ||||||
|           context: frontend |           context: frontend | ||||||
|           push: true |           push: true | ||||||
|           tags: ${{ inputs.registry_path }}/btrix/webrecorder/browsertrix-frontend:latest |           tags: ${{ secrets.DO_REGISTRY_PATH }}/btrix/webrecorder/browsertrix-frontend:latest | ||||||
|           cache-from: type=gha,scope=frontend |           cache-from: type=gha,scope=frontend | ||||||
|           cache-to: type=gha,scope=frontend,mode=max |           cache-to: type=gha,scope=frontend,mode=max | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
|       - name: Get Kubeconfig |       - name: Get Kubeconfig | ||||||
|         env: |         env: | ||||||
|             KUBECONFIG_DATA: ${{ secrets.KUBECONFIG }} |           KUBECONFIG_DATA: ${{ secrets.KUBECONFIG_DATA }} | ||||||
|           DEV_VALUES: ${{ secrets.DEV_VALUES }} |           DEV_VALUES: ${{ secrets.DEV_VALUES }} | ||||||
| 
 | 
 | ||||||
|         run: | |         run: | | ||||||
|           echo $KUBECONFIG_DATA > ./.kubeconfig |           printf "$KUBECONFIG_DATA" >> ./.kubeconfig | ||||||
|           echo $DEV_VALUES > ./dev-values.yaml |           chmod 400 ./.kubeconfig | ||||||
|  |           printf "$DEV_VALUES" >> ./dev-values.yaml | ||||||
| 
 | 
 | ||||||
|       - name: Install Kubectl |       - name: Install Kubectl | ||||||
|         uses: azure/setup-kubectl@v3 |         uses: azure/setup-kubectl@v3 | ||||||
| @ -63,8 +60,4 @@ jobs: | |||||||
| 
 | 
 | ||||||
|       - name: Start Cluster with Helm |       - name: Start Cluster with Helm | ||||||
|         run: | |         run: | | ||||||
|           export KUBECONFIG=./.kubeconfig |           KUBECONFIG=./.kubeconfig helm upgrade --install -f ./chart/values.yaml -f ./dev-values.yaml btrix ./chart/ | ||||||
|           helm upgrade --install -f ./chart/values.yaml -f ./dev-values.yaml btrix ./chart/ |  | ||||||
| 
 |  | ||||||
|          |  | ||||||
|   |  | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user