From 8e307917ccf82473140b80347950bad9c96d7bd1 Mon Sep 17 00:00:00 2001 From: Thibaut Rousseau Date: Fri, 15 Mar 2024 16:49:21 +0100 Subject: [PATCH] increase deploy timeout --- .github/workflows/main.yml | 4 +--- Makefile | 7 ++++--- 2 files changed, 5 insertions(+), 6 deletions(-) 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) .