Skip to content

undo legacy ssl flag #3

undo legacy ssl flag

undo legacy ssl flag #3

Workflow file for this run

name: Client CI
env:
IMAGE: ghcr.io/hasadna/meirim/meirim-client
on:
push:
paths:
- client/**
- .github/workflows/client.yml
jobs:
build-and-deploy-prod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v1
with:
node-version: 14.x
- working-directory: client
run: npm install
- working-directory: client
run: echo "https://github.com/hasadna/meirim/commit/${{ github.sha }}" > public/version.txt
- working-directory: client
run: npm run build
env:
PUBLIC_URL: "https://meirim.org"
NODE_ENV: production
REACT_APP_BASE_API_URL: https://api.meirim.org/api
- uses: actions/upload-artifact@v4
with:
name: client-build
path: client/build
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-buildx-action@v3
- id: docker_build
uses: docker/build-push-action@v6
with:
push: true
tags: |
${{ env.IMAGE }}:${{ github.sha }}
${{ github.ref == 'refs/heads/master' && format('{0}:latest', env.IMAGE) || '' }}
context: client
cache-from: type=registry,ref=${{ env.IMAGE }}:buildcache-latest
cache-to: ${{ github.ref == 'refs/heads/master' && format('type=registry,ref={0}:buildcache-latest,mode=max', env.IMAGE) || '' }}
- if: github.ref == 'refs/heads/master'
uses: hasadna/hasadna-k8s/.github/actions/deploy@master
with:
app: meirim
updates: clientImage=${{ env.IMAGE }}:${{ github.sha }}
env:
HASADNA_K8S_DEPLOY_KEY: ${{ secrets.HASADNA_K8S_DEPLOY_KEY }}