diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 02b19a8..c5b8293 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,8 +34,7 @@ jobs: - name: checking file creation run: | ls -la - ls -la . - ls -la .. + pwd cat .env - name: Checkout code @@ -67,7 +66,8 @@ jobs: IMAGE_TAG: latest run: | echo "Building docker image......" - docker build . -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG --call + ls -la + docker build . -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG echo "Pushing docker image to AWS ECR......" docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG echo "Done......." diff --git a/Dockerfile b/Dockerfile index 696be7c..1bddc9c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ RUN npm ci #copying the entire codebase COPY . . -COPY .env . +COPY myfile.txt . #exposing port of the container EXPOSE 3000