Skip to content

Commit

Permalink
Create config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shadabmalikshah authored Oct 16, 2024
1 parent 3035f06 commit a2d87b0
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
version: 2.1

executors:
docker-executor:
docker:
- image: circleci/node:14

jobs:
build:
executor: docker-executor
steps:
- checkout

- run:
name: Install Dependencies
command: |
cd frontend
npm install
- run:
name: Build Project
command: |
cd frontend
npm run build
- setup_remote_docker:
version: 20.10.7
docker_layer_caching: true

- run:
name: Build Docker Image
command: |
cd frontend
docker build -t shadabmaliks/circleci_react:latest .
- run:
name: Log in to Docker Hub
command: echo "${circleci_docker_password}" | docker login -u "${circelci_docker_username}" --password-stdin

- run:
name: Push Docker Image
command: |
docker push shadabmaliks/circleci_react:latest
workflows:
version: 2
build_and_push:
jobs:
- build

0 comments on commit a2d87b0

Please sign in to comment.