diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a050bc2..8cdeaac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -101,7 +101,7 @@ jobs: needs: [lint, test, build] if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest - timeout-minutes: 5 + timeout-minutes: 10 steps: - uses: actions/checkout@v4 @@ -127,8 +127,6 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - with: - platforms: linux/amd64,linux/arm64 - name: Deploy on Docker registry run: make VERSION=${{ steps.extract_ref.outputs.GIT_REF }} deploy-docker diff --git a/Makefile b/Makefile index 3b2a60a..495e098 100644 --- a/Makefile +++ b/Makefile @@ -145,8 +145,9 @@ start-caddy: $(CADDY) .PHONY: deploy-docker deploy-docker: - docker run --rm --privileged multiarch/qemu-user-static --reset -p yes; docker buildx create --use + docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + docker buildx create --use ifdef IS_SEMVER - docker buildx build --push --build-arg VERSION=$(VERSION) --build-arg COMMIT=$(COMMIT) --tag $(DOCKER_IMAGE):latest --platform linux/arm/v7,linux/arm64/v8,linux/amd64 . + docker buildx build --push --build-arg VERSION=$(VERSION) --build-arg COMMIT=$(COMMIT) --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag $(DOCKER_IMAGE):latest . endif - docker buildx build --push --build-arg VERSION=$(VERSION) --build-arg COMMIT=$(COMMIT) --tag $(DOCKER_IMAGE):$(DOCKER_TAG) --platform linux/arm/v7,linux/arm64/v8,linux/amd64 . + docker buildx build --push --build-arg VERSION=$(VERSION) --build-arg COMMIT=$(COMMIT) --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag $(DOCKER_IMAGE):$(DOCKER_TAG) .