diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 4fe508a8..74acfbb6 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -25,12 +25,7 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - # Step 4: Build the Docker image - - name: Build Docker image + # Step 4: Build and Push the Docker image + - name: Build and Push Docker image run: | - docker buildx build -t ${{ secrets.DOCKER_USERNAME }}/cd3:latest . - - # Step 5: Push Docker image to Docker Hub - - name: Push Docker image - run: | - docker push ${{ secrets.DOCKER_USERNAME }}/cd3:latest + docker buildx build --push -t ${{ secrets.DOCKER_USERNAME }}/cd3:latest .