test docker build and push

This commit is contained in:
2024-03-11 19:23:09 +01:00
parent de64411eb0
commit 2cb55937c9
7 changed files with 18 additions and 13 deletions

View File

@@ -2,8 +2,8 @@ name: Build and Push Backend image to Docker Hub
on:
push:
branches:
- 'main'
# branches:
# - 'main'
paths:
- '- "auth-service/**"'
@@ -24,5 +24,5 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
context: backend
context: auth-service
tags: vcscsvcscs/gheritage-auth-service:latest

View File

@@ -2,8 +2,8 @@ name: Build and Push Backend image to Docker Hub
on:
push:
branches:
- 'main'
# branches:
# - 'main'
paths:
- '- "backend/**"'

View File

@@ -1,5 +1,10 @@
name: Deploy
on: ['deployment']
on:
push:
# branches:
# - main
paths:
- 'deployment/zitadel_values.yaml'
jobs:
deployment:
@@ -21,7 +26,7 @@ jobs:
value-files: "deployment/database_values.yaml"
env:
KUBECONFIG_FILE: '${{ secrets.KUBECONFIG }}'
- name: 'Deploy Zitadel'
uses: 'vimeda/helm@v1'
with:

View File

@@ -8,9 +8,9 @@ jobs:
lint:
uses: ./.github/workflows/svelte_lint.yml
with:
working-directory: 'backend'
working-directory: 'frontend'
build:
needs: lint
uses: ./.github/workflows/svelte_build.yml
with:
working-directory: 'backend'
working-directory: 'frontend'

View File

@@ -16,9 +16,9 @@ jobs:
node-version: '21.x'
- name: Install dependencies
run: |
cd frontend
cd ${{ inputs.working-directory }}
npm ci
- name: Build
run: |
cd frontend
cd ${{ inputs.working-directory }}
npm run build

View File

@@ -16,9 +16,9 @@ jobs:
node-version: '21.x'
- name: Install dependencies
run: |
cd frontend
cd ${{ inputs.working-directory }}
npm ci
- name: Lint
run: |
cd frontend
cd ${{ inputs.working-directory }}
npm run lint