From e1451ab9de5641d309a48440c9a6dea90a1f1661 Mon Sep 17 00:00:00 2001 From: Hui Mi Date: Sat, 22 Jun 2024 15:17:49 +0800 Subject: [PATCH] upload to docker hub --- .github/workflows/docker-publish.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) 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