Fix deployment configuration #23
| @@ -8,7 +8,7 @@ name: Build and deploy the backend to production | |||||||
| jobs: | jobs: | ||||||
|   build-and-push: |   build-and-push: | ||||||
|     name: Build and push image |     name: Build and push image | ||||||
|     uses: ./workflow_build-image.yaml |     uses: ./.gitea/workflows/workflow_build-image.yaml | ||||||
|     with: |     with: | ||||||
|       tag: stable |       tag: stable | ||||||
|     secrets: |     secrets: | ||||||
| @@ -16,8 +16,9 @@ jobs: | |||||||
|    |    | ||||||
|   deploy-prod: |   deploy-prod: | ||||||
|     name: Deploy to production |     name: Deploy to production | ||||||
|     uses: ./workflow_deploy-container.yaml |     uses: ./.gitea/workflows/workflow_deploy-container.yaml | ||||||
|     with: |     with: | ||||||
|       environment: prod |       overlay: prod | ||||||
|     secrets: |     secrets: | ||||||
|       PACKAGE_REGISTRY_ACCESS: ${{ secrets.KUBE_CONFIG }} |       KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} | ||||||
|  |     needs: build-and-push | ||||||
|   | |||||||
| @@ -10,16 +10,17 @@ name: Build and deploy the backend to staging | |||||||
| jobs: | jobs: | ||||||
|   build-and-push: |   build-and-push: | ||||||
|     name: Build and push image |     name: Build and push image | ||||||
|     uses: ./workflow_build-image.yaml |     uses: ./.gitea/workflows/workflow_build-image.yaml | ||||||
|     with: |     with: | ||||||
|       tag: unstable |       tag: unstable | ||||||
|     secrets: |     secrets: | ||||||
|       PACKAGE_REGISTRY_ACCESS: ${{ secrets.PACKAGE_REGISTRY_ACCESS }} |       PACKAGE_REGISTRY_ACCESS: ${{ secrets.PACKAGE_REGISTRY_ACCESS }} | ||||||
|    |    | ||||||
|   deploy-prod: |   deploy-prod: | ||||||
|     name: Deploy to production |     name: Deploy to staging | ||||||
|     uses: ./workflow_deploy-container.yaml |     uses: ./.gitea/workflows/workflow_deploy-container.yaml | ||||||
|     with: |     with: | ||||||
|       environment: stg |       overlay: stg | ||||||
|     secrets: |     secrets: | ||||||
|       PACKAGE_REGISTRY_ACCESS: ${{ secrets.KUBE_CONFIG }} |       KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} | ||||||
|  |     needs: build-and-push | ||||||
|   | |||||||
| @@ -34,5 +34,5 @@ jobs: | |||||||
|       uses: docker/build-push-action@v5 |       uses: docker/build-push-action@v5 | ||||||
|       with: |       with: | ||||||
|         context: backend |         context: backend | ||||||
|         tags: git.kluster.moll.re/anydev/anyway-backend:${{intputs.tag}} |         tags: git.kluster.moll.re/anydev/anyway-backend:${{ inputs.tag }} | ||||||
|         push: true |         push: true | ||||||
|   | |||||||
| @@ -9,8 +9,11 @@ This repository contains the backend code for the application. It utilizes FastA | |||||||
| - Since the application is aimed to be deployed in a container, the `Dockerfile` is provided to build the image. | - Since the application is aimed to be deployed in a container, the `Dockerfile` is provided to build the image. | ||||||
|  |  | ||||||
| ### Deployment | ### Deployment | ||||||
| To deploy the backend docker container, we use kubernetes. The deployment configuration is located under [https://git.kluster.moll.re/anydev/deployment-backend/](https://git.kluster.moll.re/anydev/deployment-backend/). | To deploy the backend docker container, we use kubernetes. Modifications to the backend are automatically pushed to a two-stage environment through the CI pipeline. See [deployment/README](deployment/README.md] for further information. | ||||||
|  |  | ||||||
|  | The deployment configuration is included as a submodule in the `deployment` directory. The standalone repository is under [https://git.kluster.moll.re/anydev/anyway-backend-deployment/](https://git.kluster.moll.re/anydev/anyway-backend-deployment/). | ||||||
|  |  | ||||||
|  |  | ||||||
| ## Development | ## Development | ||||||
| TBD | TBD | ||||||
|  |  | ||||||
|   | |||||||
 Submodule backend/deployment updated: 2b8b8390bc...8927f278f3
									
								
							
		Reference in New Issue
	
	Block a user