Skip to content

Commit

Permalink
Implement Docker support in CI/CD workflow
Browse files Browse the repository at this point in the history
Removed AWS SDK installation and AWS-specific environment variables in CI/CD workflow to streamline build process. Replaced deployment step with build and push to Docker Hub using new Dockerfile to containerize the application.

Took 4 minutes
  • Loading branch information
fonCki committed Mar 15, 2024
1 parent de448a5 commit 0e692fe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,17 @@ jobs:
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Install AWS SDK (if required separately)
run: npm install aws-sdk
- name: Run tests
run: npm test
timeout-minutes: 15
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_REGION: ${{ secrets.AWS_REGION }}
PORT: ${{ secrets.PORT }}

build-and-push-docker:
needs: build-and-test
Expand Down

0 comments on commit 0e692fe

Please sign in to comment.