diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..aaf4197 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,27 @@ +name: Build and push on Docker Hub + +on: + push: + branches: + - main + +jobs: + build-and-push: + runs-on: ubuntu-latest + stpeps: + - name: check Out Repo + uses: actions/checkout@v4 + + - name: login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build Docker Image + run: docker/build-push-action@v2 + with: + context: . + file: ./docker/Dockerfile.user + push: true + tags: ${{ secrets.DOCKER_USERNAME }}/rapid-deploy:latest