Skip to content

build(deps-dev): bump eslint-plugin-react from 7.34.0 to 7.35.0 (#503) #306

build(deps-dev): bump eslint-plugin-react from 7.34.0 to 7.35.0 (#503)

build(deps-dev): bump eslint-plugin-react from 7.34.0 to 7.35.0 (#503) #306

Workflow file for this run

name: Build and deploy (staging)
on:
push:
branches:
- master
env:
RELEASE_NAME: doctors-website
CHART_VALUES_FILE: .helm/values.stage.yml
DEPLOY_NAMESPACE: doctors-stage
DEPLOY_ENV: staging
DEPLOY_URL: https://stage-zdravniki.sledilnik.org
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'NOBUILD')"
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@v6
with:
push: true
context: .
file: ./Dockerfile
tags: |
ghcr.io/${{ github.repository_owner }}/doctors-website:latest
build-args: |
BUILD_MODE=staging
deploy:
runs-on: ubuntu-latest
needs: build
if: "!contains(github.event.head_commit.message, 'NODEPLOY')"
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Deploy
uses: sledilnik/action-helm-deploy@v1.0.2
with:
chartName: sledilnik/website
chartVersion: '1.0.0'
kubeconfig: '${{ secrets.KUBECONFIG }}'