Skip to content

Commit

Permalink
Fix UI artifact upload and semver tests (#13)
Browse files Browse the repository at this point in the history
Signed-off-by: Jordi Clariana <[email protected]>
  • Loading branch information
jordiclariana authored Mar 20, 2023
1 parent d4a7bdc commit c3182a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release-ankorstore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ jobs:
echo "::set-output name=release_version::$RELEASE_VERSION"
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Download ui tar
uses: actions/download-artifact@v2
with:
name: ui-tar
- name: install-upx
run: brew install upx
- name: Compile binaries
Expand Down
5 changes: 3 additions & 2 deletions pkg/devspace/upgrade/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package upgrade

import (
"fmt"
"github.com/loft-sh/devspace/pkg/devspace/env"
"os"
"regexp"
"sync"

"github.com/loft-sh/devspace/pkg/devspace/env"

"github.com/pkg/errors"

"github.com/loft-sh/devspace/pkg/util/log"
Expand All @@ -20,7 +21,7 @@ var version string
var rawVersion string

var githubSlug = "ankorstore/devspace"
var reVersion = regexp.MustCompile(`\d+\.\d+\.\d+-aks.\d`)
var reVersion = regexp.MustCompile(`\d+\.\d+\.\d+(-aks.\d)?`)

func eraseVersionPrefix(version string) (string, error) {
indices := reVersion.FindStringIndex(version)
Expand Down

0 comments on commit c3182a8

Please sign in to comment.