diff options
Diffstat (limited to '.github/workflows/create_release_impl.yml')
| -rw-r--r-- | .github/workflows/create_release_impl.yml | 41 |
1 files changed, 37 insertions, 4 deletions
diff --git a/.github/workflows/create_release_impl.yml b/.github/workflows/create_release_impl.yml index 0f0bab9da..9a062a292 100644 --- a/.github/workflows/create_release_impl.yml +++ b/.github/workflows/create_release_impl.yml @@ -163,21 +163,54 @@ jobs: run: | aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 728559092788.dkr.ecr.us-east-1.amazonaws.com + - name: Docker network diagnostics + run: | + echo "--- Runner: $(hostname) ---" + echo "--- DNS resolution ---" + dig +short us-east-1.ec2.archive.ubuntu.com || true + dig +short dl.winehq.org || true + echo "--- Download speed test (us-east-1.ec2.archive.ubuntu.com) ---" + curl -so /dev/null -w "HTTP %{http_code} | %{size_download} bytes | %{speed_download} bytes/sec | connect=%{time_connect}s total=%{time_total}s\n" \ + http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/noble/Release || true + echo "--- Download speed test (dl.winehq.org) ---" + curl -so /dev/null -w "HTTP %{http_code} | %{size_download} bytes | %{speed_download} bytes/sec | connect=%{time_connect}s total=%{time_total}s\n" \ + https://dl.winehq.org/wine-builds/winehq.key || true + - name: Build and push Docker image (with Wine + Windows binary) run: | + ECR=728559092788.dkr.ecr.us-east-1.amazonaws.com/zenserver + VERSION=${{ steps.read_version.outputs.content }} + docker pull $ECR:latest-wine || true docker build \ - -t 728559092788.dkr.ecr.us-east-1.amazonaws.com/zenserver:${{ steps.read_version.outputs.content }}-wine \ + --progress=plain \ + --build-arg BUILDKIT_INLINE_CACHE=1 \ + --cache-from $ECR:latest-wine \ + -t $ECR:${VERSION}-wine \ + -t $ECR:latest-wine \ --build-arg WIN_BINARY_DIR=build/win-binary-staging \ -f docker/Dockerfile . - docker push 728559092788.dkr.ecr.us-east-1.amazonaws.com/zenserver:${{ steps.read_version.outputs.content }}-wine + docker push $ECR:${VERSION}-wine + docker push $ECR:latest-wine + env: + DOCKER_BUILDKIT: 1 - name: Build and push Docker image (Linux only, no Wine) run: | + ECR=728559092788.dkr.ecr.us-east-1.amazonaws.com/zenserver + VERSION=${{ steps.read_version.outputs.content }} + docker pull $ECR:latest-linux || true docker build \ - -t 728559092788.dkr.ecr.us-east-1.amazonaws.com/zenserver:${{ steps.read_version.outputs.content }}-linux \ + --progress=plain \ + --build-arg BUILDKIT_INLINE_CACHE=1 \ + --cache-from $ECR:latest-linux \ --build-arg INSTALL_WINE=false \ + -t $ECR:${VERSION}-linux \ + -t $ECR:latest-linux \ -f docker/Dockerfile . - docker push 728559092788.dkr.ecr.us-east-1.amazonaws.com/zenserver:${{ steps.read_version.outputs.content }}-linux + docker push $ECR:${VERSION}-linux + docker push $ECR:latest-linux + env: + DOCKER_BUILDKIT: 1 create-release: runs-on: [linux, x64, zen] |