diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 589898b..9367fba 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -15,12 +15,8 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - - name: Build and push Docker image - uses: docker/compose-action@v2 - with: - compose-file: docker-compose.yml - push: true - tags: latest + - name: Build the Docker image + run: docker-compose -f docker-compose.yml build - name: Log into Docker Hub uses: docker/login-action@v2 @@ -28,9 +24,5 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Build and push Docker image with Buildx - uses: docker/build-push-action@v2 - with: - context: . - file: docker-compose.yml - tags: ${{ secrets.DOCKER_USERNAME }}/your-image-name:latest \ No newline at end of file + - name: Push the Docker image to Docker Hub + run: docker-compose -f docker-compose.yml push \ No newline at end of file