Skip to content

Build and Push Client Docker Image (Prod) #2

Build and Push Client Docker Image (Prod)

Build and Push Client Docker Image (Prod) #2

name: Build and Push Client Docker Image (Prod)
on:
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "*"
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push Docker Image
run: |
cd src/Client
docker build --build-arg PROFILE=prod -t ${{ secrets.DOCKER_USERNAME }}/cbc-app .
docker push ${{ secrets.DOCKER_USERNAME }}/cbc-app:latest