Skip to content

v2024.04.27 - Removed Sozialmarie voting #46

v2024.04.27 - Removed Sozialmarie voting

v2024.04.27 - Removed Sozialmarie voting #46

Workflow file for this run

name: Build and deploy (production)
on:
release:
types: [published]
env:
RELEASE_NAME: doctors-website
CHART_VALUES_FILE: .helm/values.prod.yml
DEPLOY_NAMESPACE: doctors-prod
DEPLOY_ENV: production
DEPLOY_URL: https://zdravniki.sledilnik.org
IMAGE_TAG: ${{ github.event.release.tag_name }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and push docker container image
uses: docker/build-push-action@v5
with:
push: true
context: .
file: ./Dockerfile
tags: |
ghcr.io/${{ github.repository_owner }}/doctors-website:${{ env.IMAGE_TAG}}
build-args: |
BUILD_MODE=production
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Deploy
uses: sledilnik/[email protected]
with:
chartName: sledilnik/website
chartVersion: '1.0.0'
kubeconfig: '${{ secrets.KUBECONFIG }}'