Skip to content

Commit

Permalink
docker build and push done
Browse files Browse the repository at this point in the history
  • Loading branch information
itzzjb committed Aug 8, 2024
1 parent f2090c0 commit 46cc4ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ jobs:
# Checkout the code
- name: Checkout
uses: actions/checkout@v4
# Ubuntu-latest has Docker pre-installed
# Login to Docker Hub
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKER_USERNAME}} # Docker Hub username
password: ${{secrets.DOCKER_PASSWORD}} # Docker Hub password
# Build the Docker image
- name: Build anf Push Docker Image
- name: Build & Push the Docker Image
uses: docker/build-push-action@v6
with:
push: true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Objectives Of the Project

- [ ] ⁠Create a new pipeline to build and push Docker image to Docker Hub when there are changes in the main branch
- [x] ⁠Create a new pipeline to build and push Docker image to Docker Hub when there are changes in the main branch

- [ ] ⁠Add AWS credentials to GitHub repo secrets and update the pipeline to push the image to the ECR repo instead of the Docker Hub

Expand Down

0 comments on commit 46cc4ae

Please sign in to comment.