Skip to content

Deploy

Deploy #21

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
push:
branches:
- main
jobs:
Build-safety-data-client:
if: github.repository == "${{ github.repository_owner }}/safety-data-client"

Check warning on line 11 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy

Workflow syntax warning

.github/workflows/deploy.yml (Line: 11, Col: 13): Conditional expression contains literal text outside replacement tokens. This will cause the expression to always evaluate to truthy. Did you mean to put the entire expression inside ${{ }}?
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push safety-data-client Docker image
uses: docker/build-push-action@v6
with:
file: Dockerfile.prod
push: true
tags: ghcr.io/${{ github.repository_owner }}/safety-data-client:latest
build-args: |
REACT_APP_API_URL=${{ secrets.REACT_APP_API_URL }}
VITE_API_URL=${{ secrets.VITE_API_URL }}
VITE_API_ANYWAY_URL=${{ secrets.VITE_API_ANYWAY_URL }}