diff --git a/.gitea/workflows/deploy-api.yml b/.gitea/workflows/deploy-api.yml index c5ed5be..14115cd 100644 --- a/.gitea/workflows/deploy-api.yml +++ b/.gitea/workflows/deploy-api.yml @@ -30,6 +30,25 @@ jobs: distribution: "zulu" maven-version: ${{ matrix.maven-version }} + # # Setup Docker Buildx + # - name: Set up Docker Buildx + # uses: docker/setup-buildx-action@v3 + + # Login to the Docker image registry + - name: Login to Docker Registry + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_REGISTRY_USERNAME }} + password: ${{ secrets.DOCKER_REGISTRY_TOKEN }} + + # Build and push the image + - name: Build and Push (Docker Image) + uses: docker/build-push-action@v6 + with: + push: true + context: API + tags: rainnny/textpurify-api:latest + # Deploy to Dokku - name: Deploy to Dokku uses: dokku/github-action@master