diff --git a/.github/workflows/distribute-zboxcli.yml b/.github/workflows/distribute-zboxcli.yml index ea6da58e..c8772a58 100644 --- a/.github/workflows/distribute-zboxcli.yml +++ b/.github/workflows/distribute-zboxcli.yml @@ -9,11 +9,11 @@ on: version: description: 'Version of zbox to release' required: true - default: 'v1.0.0' + default: '1.0.0' env: APP_NAME: zbox - APP_VERSION: v1.16.0 # REMOVE: take as input from workflow + APP_VERSION: 1.16.0 # REMOVE: take as input from workflow GO_VERSION: 1.21.0 REMOTE_SERVER: 5.9.151.246 REMOTE_USER: root diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dcaf7dd7..660c065c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,11 +8,11 @@ on: version: description: 'Version of zbox to release' required: true - default: 'v1.0.0' + default: '1.0.0' env: GITHUB_TOKEN: ${{ secrets.GOSDK }} - VERSION: v1.16.0 # take as input from workflow + VERSION: 1.16.0 # take as input from workflow APP_NAME: zbox GO_VERSION: 1.21 diff --git a/scripts/windows/Dockerfile.build b/scripts/windows/Dockerfile.build deleted file mode 100644 index 7c20a119..00000000 --- a/scripts/windows/Dockerfile.build +++ /dev/null @@ -1,30 +0,0 @@ -# Use the Windows Server 2022 base image for amd64 -FROM mcr.microsoft.com/windows/servercore:ltsc2022 - -# Set environment variables for Go -ENV GOLANG_VERSION 1.21 -ARG VERSION - -# Install Chocolatey -RUN powershell -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command \ - Set-ExecutionPolicy Bypass -Scope Process -Force; \ - [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; \ - Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) - -# Install Go -RUN choco install golang --version %GOLANG_VERSION% -y && \ - refreshenv - -# Create directories -RUN mkdir c:\\src - -# Copy the source code into the container -COPY . c:\\src - -# Set the working directory -WORKDIR c:\\src - -# Build the application -RUN go env -RUN CGO_ENABLED=1 go build -x -v -tags bn256 -ldflags "-X main.VersionStr=${VERSION} -linkmode 'external' -extldflags '-static'" -o zbox.exe . -