diff --git a/.github/workflows/docker-push-registry.yml b/.github/workflows/docker-push-registry.yml new file mode 100644 index 00000000..8897e414 --- /dev/null +++ b/.github/workflows/docker-push-registry.yml @@ -0,0 +1,28 @@ +name: Deploy to docker + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + push: + name: Build and push to docker hub registry + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push + uses: isbang/compose-action@v1.5.1 + with: + compose-file: "./docker-compose.yml" + compose-flags: "push"