From cde750f76d0e7f586ca6545436f0ca927d25cd41 Mon Sep 17 00:00:00 2001 From: Ben Reedy Date: Sun, 27 Feb 2022 16:22:32 +1000 Subject: [PATCH 1/2] Replace invalid tag characters for master images Signed-off-by: Ben Reedy --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7178a6e..cc599beb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -144,6 +144,8 @@ jobs: goversioninfo.exe -ver-major $VersionParts[0] -ver-minor $VersionParts[1] -ver-patch $VersionParts[2] -product-version $Version -platform-specific make crossbuild + # '+' symbols are invalid characters in image tags + (Get-Content -Path VERSION) -replace '\+', '_' | Set-Content -Path VERSION make build-all # GH requires all files to have different names, so add version/arch to differentiate foreach($Arch in "amd64","386") { From c6285cdf9d68866922de66e234d93c0e3d08de58 Mon Sep 17 00:00:00 2001 From: Ben Reedy Date: Sun, 27 Feb 2022 17:02:05 +1000 Subject: [PATCH 2/2] Fix VERSION env variable for image push Powershell uses $Env: prefix for environment variables. Signed-off-by: Ben Reedy --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc599beb..895e4258 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -187,7 +187,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - VERSION=latest make push-all + $Env:VERSION = 'latest' + make push-all - name: Release if: startsWith(github.ref, 'refs/tags/')