Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ on:
workflow_dispatch:

env:
DOCKER_VERSION: "26.1.4"
DOCKER_COMPOSE_VERSION: "v2.27.1"
DOCKER_BUILDX_VERSION: "v0.15.0"
DOCKER_VERSION: "28.2.2"
DOCKER_COMPOSE_VERSION: "v2.36.2"
DOCKER_BUILDX_VERSION: "v0.24.0"
GO_VERSION: "1.22"
GO_DNSMASQ: "1.0.7"
REGISTRY: ghcr.io
# Need to be resolved dynamically as there is no lowercase function
# for templated expressions!
# See also: https://github.com/orgs/community/discussions/25768
# org
GITHUB_REPOSITORY_OWNER_LC:
GITHUB_REPOSITORY_OWNER_LC: ''
# org/repo
GITHUB_REPOSITORY_LC:
GITHUB_REPOSITORY_LC: ''
# registry/org
REGISTRY_BASE_IMAGE_PATH:
REGISTRY_BASE_IMAGE_PATH: ''
# registry/org/repo
DEFAULT_FULL_IMAGE_NAME:
DEFAULT_FULL_IMAGE_NAME: ''
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Expand Down
9 changes: 5 additions & 4 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
# - dotnet 6.0 SDK
# - docker
# This script must run on Windows because the application is a Windows application.
$DOCKER_VERSION="26.1.4"
$DOCKER_COMPOSE_VERSION="v2.27.1"
$DOCKER_BUILDX_VERSION="v0.15.0"
$DOCKER_VERSION="28.2.2"
$DOCKER_COMPOSE_VERSION="v2.36.2"
$DOCKER_BUILDX_VERSION="v0.24.0"
$GO_DNSMASQ="1.0.7"
$GO_VERSION="1.22"
function ExitOnFailure([string] $message, [string] $sha) {
if (($LastExitCode -ne 0) -or (-not $?)) {
Expand Down Expand Up @@ -57,7 +58,7 @@ ExitOnFailure("Failed to download WSL Kernel MSI")
# Download dns-forwarder (go-dnsmasq)
docker run --rm -v "$($PWD):/src" container-desktop-tools:build sh -c "mkdir -p /src/dist/bin/"
ExitOnFailure("Failed to download dns-forwarder")
docker run --rm -v "$($PWD):/src" container-desktop-tools:build sh -c "curl -L -o /src/dist/bin/dns-forwarder https://github.com/janeczku/go-dnsmasq/releases/download/1.0.7/go-dnsmasq-min_linux-amd64"
docker run --rm -v "$($PWD):/src" container-desktop-tools:build sh -c "curl -L -o /src/dist/bin/dns-forwarder https://github.com/janeczku/go-dnsmasq/releases/download/$GO_DNSMASQ/go-dnsmasq-min_linux-amd64"
ExitOnFailure("Failed to download dns-forwarder")
# Build proxy for Windows and Linux and copy to /dist
docker run --rm -v "go-packages-cache:/go/pkg/mod" -v "$($PWD):/go/src" -w /go/src/cmd/container-desktop-proxy -e CGO_ENABLED=0 -e GOOS=windows -e GOARCH=amd64 golang:$GO_VERSION go build -v -o /go/src/dist/container-desktop-proxy-windows-amd64.exe
Expand Down
Loading