Skip to content

Commit d4a7bdc

Browse files
Build UI and check for fork upgrades (#12)
Signed-off-by: Jordi Clariana <[email protected]>
1 parent 03a795a commit d4a7bdc

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

.github/workflows/release-ankorstore.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,41 @@ on:
2121
- ".github/workflows/release.yaml"
2222

2323
jobs:
24+
release-ui:
25+
if: startsWith(github.ref, 'refs/tags/v') == true
26+
runs-on: ubuntu-18.04
27+
steps:
28+
- uses: actions/checkout@v1
29+
- uses: actions/setup-node@v1
30+
with:
31+
node-version: 12
32+
registry-url: https://registry.npmjs.org/
33+
- id: get_version
34+
run: |
35+
RELEASE_VERSION=$(echo $GITHUB_REF | sed -nE 's!refs/tags/!!p')
36+
echo "::set-output name=release_version::$RELEASE_VERSION"
37+
- name: Cache node modules
38+
uses: actions/cache@v1
39+
with:
40+
path: ui/node_modules
41+
key: ${{ runner.os }}-node-${{ hashFiles('**/ui/package-lock.json') }}
42+
restore-keys: |
43+
${{ runner.os }}-node-
44+
- name: Build UI
45+
env:
46+
VERSION: ${{ steps.get_version.outputs.release_version }}
47+
NPM_CONFIG_GLOBALCONFIG: "dist/npm/config/npmrc"
48+
NPM_REGISTRY_TOKEN: ${{ secrets.JF_NPM_TOKEN }}
49+
CI: "false"
50+
run: ./hack/build-ui.bash
51+
- name: Upload ui tar
52+
uses: actions/upload-artifact@v2
53+
with:
54+
name: ui-tar
55+
path: release/ui.tar.gz
2456
release:
2557
if: startsWith(github.ref, 'refs/tags/v') == true
58+
needs: [ release-ui ]
2659
runs-on: macos-11
2760
steps:
2861
- name: Set up Go

pkg/devspace/server/download.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
)
2424

2525
// UIRepository is the repository containing the devspace UI
26-
const UIRepository = "https://github.com/devspace-sh/devspace"
26+
const UIRepository = "https://github.com/ankorstore/devspace"
2727

2828
// UIDownloadBaseURL is the base url where to look for the ui
2929
const UIDownloadBaseURL = UIRepository + "/releases/download"

pkg/devspace/upgrade/upgrade.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import (
1919
var version string
2020
var rawVersion string
2121

22-
var githubSlug = "devspace-sh/devspace"
23-
var reVersion = regexp.MustCompile(`\d+\.\d+\.\d+`)
22+
var githubSlug = "ankorstore/devspace"
23+
var reVersion = regexp.MustCompile(`\d+\.\d+\.\d+-aks.\d`)
2424

2525
func eraseVersionPrefix(version string) (string, error) {
2626
indices := reVersion.FindStringIndex(version)

0 commit comments

Comments
 (0)