fix image #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- "main" | |
- "feature/deploy" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout GitHub Action' | |
uses: actions/checkout@main | |
- name: 'Login to Dockerhub Container Registry' | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: 'Build Docker Image' | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ./Dockerfile | |
push: true | |
tags: onekonsole/authentification-service:latest | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Helm | |
uses: vimeda/helm@v1.7.0 | |
with: | |
namespace: ${{ secrets.KUBE_CONTEXT }} | |
- name: Helm Upgrade | |
run: | | |
helm upgrade --install authentification-service ./deploy/authentification-service -n auth --create-namespace \ | |
--set port=${{ secrets.AUTH_SERVICE_PORT }} \ | |
--set db_username=${{ secrets.AUTH_SERVICE_DB_USERNAME }} \ | |
--set db_password=${{ secrets.AUTH_SERVICE_DB_PASSWORD }} \ | |
--set db_host=${{ secrets.AUTH_SERVICE_DB_HOST }} \ | |
--set db_name=${{ secrets.AUTH_SERVICE_DB_NAME }} \ | |
--set jwt_secret=${{ secrets.AUTH_SERVICE_JWT_SECRET }} \ | |
--set jwt_expiration=${{ secrets.AUTH_SERVICE_JWT_EXPIRATION }} \ | |
--set keycloak_realm=${{ secrets.KEYCLOAK_REALM }} \ | |
--set keycloak_server_url=${{ secrets.KEYCLOAK_SERVER_URL }} \ | |
--set keycloak_client_id=${{ secrets.KEYCLOAK_CLIENT_ID }} \ | |
--set keycloak_client_secret=${{ secrets.KEYCLOAK_CLIENT_SECRET }} \ | |
--set keycloak_admin_username=${{ secrets.KEYCLOAK_ADMIN_USERNAME }} \ | |
--set keycloak_admin_password=${{ secrets.KEYCLOAK_ADMIN_PASSWORD }} | |
env: | |
KUBECONFIG_FILE : ${{ secrets.KUBE_CONFIG }} |