build(deps-dev): bump webpack-bundle-analyzer from 4.10.1 to 4.10.2 (… #315
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: 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 }}' |