diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index a9cf718e..fccaf634 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -48,15 +48,6 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - # Build the image - - name: Build base image - uses: docker/build-push-action@v4 - with: - context: . - push: true - platforms: linux/amd64,linux/arm64 - tags: ghcr.io/${{ github.repository_owner }}/base:latest - # Authenticate with Docker Hub and GHCR - name: Login to DockerHub uses: docker/login-action@v2 @@ -72,6 +63,15 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + # Build the image + - name: Build base image + uses: docker/build-push-action@v4 + with: + context: . + push: true + platforms: linux/amd64,linux/arm64 + tags: ghcr.io/${{ github.repository_owner }}/base:latest + # revoltchat/server - name: Docker meta id: meta-delta