Skip to content

Commit 99cb24f

Browse files
committed
v1.0.0-rc.0-e
1 parent bd8462b commit 99cb24f

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

.github/workflows/build-and-push-release-image.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ on:
44
push:
55
tags:
66
# Match stable and rc versions, such as 'v1.0.0' or 'v0.23.0-rc.0'
7-
- "v*.*.*"
8-
- "v*.*.*-rc.*"
7+
# - "v*.*.*"
8+
# - "v*.*.*-rc.*"
9+
- "v*.*.*-e"
10+
- "v*.*.*-rc.*-e"
911

1012
jobs:
1113
build-and-push-stable-image:
@@ -32,7 +34,7 @@ jobs:
3234
- name: Login to Docker Hub
3335
uses: docker/login-action@v3
3436
with:
35-
username: yourselfhosted
37+
username: aykhans
3638
password: ${{ secrets.DOCKER_TOKEN }}
3739

3840
- name: Set up Docker Buildx
@@ -49,7 +51,7 @@ jobs:
4951
uses: docker/metadata-action@v5
5052
with:
5153
images: |
52-
yourselfhosted/slash
54+
aykhans/slash
5355
tags: |
5456
type=semver,pattern={{version}},value=${{ env.VERSION }}
5557
type=raw,value=stable
@@ -65,7 +67,7 @@ jobs:
6567
uses: docker/metadata-action@v5
6668
with:
6769
images: |
68-
yourselfhosted/slash
70+
aykhans/slash
6971
tags: |
7072
type=raw,value=${{ env.VERSION }}
7173
labels: |

server/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store
7676
return nil, errors.Wrap(err, "failed to register gRPC gateway")
7777
}
7878

79+
s.apiV1Service.LicenseService.UpdateSubscription(ctx, "ajiiiiidiidjijijwidjidijiwodjn")
7980
return s, nil
8081
}
8182

server/service/license/license.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,20 @@ type Claims struct {
136136
}
137137

138138
func validateLicenseKey(licenseKey string) (*ValidateResult, error) {
139+
result := &ValidateResult{
140+
Plan: 3,
141+
ExpiresTime: time.Date(2050, 12, 31, 23, 59, 59, 0, time.UTC),
142+
Trial: false,
143+
}
144+
result.Features = getDefaultFeatures(result.Plan)
145+
result.Features = append(result.Features, FeatureTypeSSO)
146+
result.Features = append(result.Features, FeatureTypeAdvancedAnalytics)
147+
result.Features = append(result.Features, FeatureTypeUnlimitedAccounts)
148+
result.Features = append(result.Features, FeatureTypeUnlimitedShortcuts)
149+
result.Features = append(result.Features, FeatureTypeUnlimitedCollections)
150+
result.Features = append(result.Features, FeatureTypeCustomeBranding)
151+
return result, nil
152+
139153
// Try to parse the license key as a JWT token.
140154
claims, _ := parseLicenseKey(licenseKey)
141155
if claims != nil {

0 commit comments

Comments
 (0)