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 e2b132f
Showing 1 changed file with 9 additions and 1 deletion.
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 vik-y -p $DOCKER_PASSWORD
docker tag mongo-backup vikasy/mongodump-s3
docker push vikasy/mongodump-s3

0 comments on commit e2b132f

Please sign in to comment.