feat: Implement initial Helm charts for backend and frontend, Gitea CI/CD pipeline, and Coder workspace configuration.
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -15,39 +15,39 @@ jobs:
|
||||
# -----------------------------------------------------------------
|
||||
# CI PART
|
||||
# -----------------------------------------------------------------
|
||||
- name: Setup Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Docker Login (Gitea Registry)
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ vars.GITEA_REGISTRY_URL }}
|
||||
username: ${{ secrets.GITEA_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.GITEA_REGISTRY_PASSWORD }}
|
||||
# -----------------------------------------------------------------
|
||||
# CI PART (Kaniko)
|
||||
# -----------------------------------------------------------------
|
||||
- name: Create Docker Config
|
||||
run: |
|
||||
mkdir -p ${{ github.workspace }}/.docker
|
||||
echo "{\"auths\":{\"${{ vars.GITEA_REGISTRY_URL }}\":{\"username\":\"${{ secrets.GITEA_REGISTRY_USERNAME }}\",\"password\":\"${{ secrets.GITEA_REGISTRY_PASSWORD }}\"}}}" > ${{ github.workspace }}/.docker/config.json
|
||||
|
||||
# BACKEND BUILD & PUSH
|
||||
- name: Build and Push Backend
|
||||
id: docker_build_backend
|
||||
uses: docker/build-push-action@v5
|
||||
uses: docker://gcr.io/kaniko-project/executor:v1.14.0-debug
|
||||
env:
|
||||
DOCKER_CONFIG: /github/workspace/.docker
|
||||
with:
|
||||
context: ./backend
|
||||
push: true
|
||||
tags: ${{ vars.GITEA_REGISTRY_URL }}/${{ github.repository }}/backend:latest
|
||||
platforms: linux/amd64,linux/arm64
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
args: >
|
||||
--context=dir:///github/workspace/backend
|
||||
--dockerfile=Dockerfile
|
||||
--destination=${{ vars.GITEA_REGISTRY_URL }}/${{ github.repository }}/backend:latest
|
||||
--cache=true
|
||||
--custom-platform=linux/arm64
|
||||
|
||||
# FRONTEND BUILD & PUSH
|
||||
- name: Build and Push Frontend
|
||||
id: docker_build_frontend
|
||||
uses: docker/build-push-action@v5
|
||||
uses: docker://gcr.io/kaniko-project/executor:v1.14.0-debug
|
||||
env:
|
||||
DOCKER_CONFIG: /github/workspace/.docker
|
||||
with:
|
||||
context: ./frontend
|
||||
push: true
|
||||
tags: ${{ vars.GITEA_REGISTRY_URL }}/${{ github.repository }}/frontend:latest
|
||||
platforms: linux/amd64,linux/arm64
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
args: >
|
||||
--context=dir:///github/workspace/frontend
|
||||
--dockerfile=Dockerfile
|
||||
--destination=${{ vars.GITEA_REGISTRY_URL }}/${{ github.repository }}/frontend:latest
|
||||
--cache=true
|
||||
--custom-platform=linux/arm64
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# CD PART (HELM)
|
||||
|
||||
Reference in New Issue
Block a user