Skip to content

Build and Push Client Docker Image (Test) #5

Build and Push Client Docker Image (Test)

Build and Push Client Docker Image (Test) #5

name: Build and Push Client Docker Image (Test)
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=staging -t ${{ secrets.DOCKER_USERNAME }}/cbc-app-test .
docker push ${{ secrets.DOCKER_USERNAME }}/cbc-app-test:latest