Skip to content

Commit

Permalink
Update github actions to upload image to dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
vik-y committed Feb 15, 2024
1 parent 8fdc823 commit 4bb63b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- '**/README.md'

jobs:
test:
test_and_push:
runs-on: ubuntu-latest
steps:
- name: Checkout Code Repository
Expand Down Expand Up @@ -75,5 +75,13 @@ jobs:
-e "AWS_DEFAULT_REGION=us-west-1" \
-e "S3_BUCKET=mongodb" \
mongo-backup

- name: Push to Docker Hub
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
docker login -u vikasy -p $DOCKER_PASSWORD
docker tag mongo-backup vikasy/mongodump-s3
docker push vikasy/mongodump-s3
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ You need to add a user with the following policies. Be sure to change `your_buck

Features to be implemented
- [ ] kubernetes yaml files and examples
- [ ] Update CI to push images to docker hub
- [*] Update CI to push images to docker hub
- [ ] Improve tests to cover more scenarios

## Troubleshoot
Expand Down

0 comments on commit 4bb63b7

Please sign in to comment.