mirror of
https://github.com/11notes/docker-kms.git
synced 2025-10-29 11:03:52 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f4f1ab656f | ||
|
|
687d4eebdc | ||
|
|
a90ee477d1 | ||
|
|
274c6587ea | ||
|
|
be06157c03 | ||
|
|
468118bf97 | ||
|
|
485a5524eb |
14
.github/workflows/docker.yml
vendored
14
.github/workflows/docker.yml
vendored
@@ -109,7 +109,7 @@ jobs:
|
|||||||
app:{
|
app:{
|
||||||
image:opt.dot.image,
|
image:opt.dot.image,
|
||||||
name:opt.dot.name,
|
name:opt.dot.name,
|
||||||
version:(opt.input?.etc?.version || opt.dot.semver.version),
|
version:(opt.input?.etc?.version || opt.dot?.semver?.version),
|
||||||
root:opt.dot.root,
|
root:opt.dot.root,
|
||||||
UID:(opt.input?.etc?.uid || 1000),
|
UID:(opt.input?.etc?.uid || 1000),
|
||||||
GID:(opt.input?.etc?.gid || 1000),
|
GID:(opt.input?.etc?.gid || 1000),
|
||||||
@@ -127,7 +127,7 @@ jobs:
|
|||||||
docker.app.suffix = docker.image.suffix;
|
docker.app.suffix = docker.image.suffix;
|
||||||
|
|
||||||
// setup tags
|
// setup tags
|
||||||
if(!opt.dot.semver?.disable?.rolling){
|
if(!opt.dot?.semver?.disable?.rolling){
|
||||||
docker.image.tags.push('rolling');
|
docker.image.tags.push('rolling');
|
||||||
}
|
}
|
||||||
if(opt.input?.etc?.dockerfile !== 'arch.dockerfile' && opt.input?.etc?.tag){
|
if(opt.input?.etc?.dockerfile !== 'arch.dockerfile' && opt.input?.etc?.tag){
|
||||||
@@ -135,18 +135,16 @@ jobs:
|
|||||||
docker.image.tags.push(opt.input.etc.tag);
|
docker.image.tags.push(opt.input.etc.tag);
|
||||||
docker.image.tags.push(`${opt.input.etc.tag}-${docker.app.version}`);
|
docker.image.tags.push(`${opt.input.etc.tag}-${docker.app.version}`);
|
||||||
docker.cache.name = `${docker.image.name}:buildcache-${opt.input.etc.tag}`;
|
docker.cache.name = `${docker.image.name}:buildcache-${opt.input.etc.tag}`;
|
||||||
}else if(opt.dot?.semver?.version){
|
}else{
|
||||||
const semver = opt.dot.semver.version.split('.');
|
const semver = docker.app.version.split('.');
|
||||||
docker.image.tags.push(`${context.sha.substring(0,7)}`);
|
docker.image.tags.push(`${context.sha.substring(0,7)}`);
|
||||||
if(Array.isArray(semver)){
|
if(Array.isArray(semver)){
|
||||||
if(semver.length >= 1) docker.image.tags.push(`${semver[0]}`);
|
if(semver.length >= 1) docker.image.tags.push(`${semver[0]}`);
|
||||||
if(semver.length >= 2) docker.image.tags.push(`${semver[0]}.${semver[1]}`);
|
if(semver.length >= 2) docker.image.tags.push(`${semver[0]}.${semver[1]}`);
|
||||||
if(semver.length >= 3) docker.image.tags.push(`${semver[0]}.${semver[1]}.${semver[2]}`);
|
if(semver.length >= 3) docker.image.tags.push(`${semver[0]}.${semver[1]}.${semver[2]}`);
|
||||||
}
|
}
|
||||||
if(opt.dot.semver?.stable && new RegExp(opt.dot.semver.stable, 'ig').test(docker.image.tags.join(','))) docker.image.tags.push('stable');
|
if(opt.dot?.semver?.stable && new RegExp(opt.dot?.semver.stable, 'ig').test(docker.image.tags.join(','))) docker.image.tags.push('stable');
|
||||||
if(opt.dot.semver?.latest && new RegExp(opt.dot.semver.latest, 'ig').test(docker.image.tags.join(','))) docker.image.tags.push('latest');
|
if(opt.dot?.semver?.latest && new RegExp(opt.dot?.semver.latest, 'ig').test(docker.image.tags.join(','))) docker.image.tags.push('latest');
|
||||||
}else if(opt.input?.etc?.version && opt.input.etc.version === 'latest'){
|
|
||||||
docker.image.tags.push('latest');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for(const tag of docker.image.tags){
|
for(const tag of docker.image.tags){
|
||||||
|
|||||||
41
.github/workflows/tags.yml
vendored
41
.github/workflows/tags.yml
vendored
@@ -40,6 +40,24 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: docker
|
needs: docker
|
||||||
steps:
|
steps:
|
||||||
|
- name: init / base64 nested json
|
||||||
|
uses: actions/github-script@62c3794a3eb6788d9a2a72b219504732c0c9a298
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const { Buffer } = require('node:buffer');
|
||||||
|
(async()=>{
|
||||||
|
try{
|
||||||
|
const master = await fetch('https://raw.githubusercontent.com/11notes/docker-kms/refs/heads/master/.json');
|
||||||
|
const dot = await master.json();
|
||||||
|
const etc = {
|
||||||
|
version:dot.semver.version,
|
||||||
|
};
|
||||||
|
core.exportVariable('WORKFLOW_BASE64JSON', Buffer.from(JSON.stringify(etc)).toString('base64'));
|
||||||
|
}catch(e){
|
||||||
|
core.setFailed(`workflow failed: ${e}`);
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
|
||||||
- name: build downstream kms gui
|
- name: build downstream kms gui
|
||||||
uses: the-actions-org/workflow-dispatch@3133c5d135c7dbe4be4f9793872b6ef331b53bc7
|
uses: the-actions-org/workflow-dispatch@3133c5d135c7dbe4be4f9793872b6ef331b53bc7
|
||||||
with:
|
with:
|
||||||
@@ -47,7 +65,7 @@ jobs:
|
|||||||
token: "${{ secrets.REPOSITORY_TOKEN }}"
|
token: "${{ secrets.REPOSITORY_TOKEN }}"
|
||||||
repo: 11notes/docker-kms-gui
|
repo: 11notes/docker-kms-gui
|
||||||
ref: master
|
ref: master
|
||||||
inputs: '{ "release":"false", "readme":"true" }'
|
inputs: '{ "release":"false", "readme":"true", "etc":"${{ env.WORKFLOW_BASE64JSON }}" }'
|
||||||
|
|
||||||
kms-gui-unraid:
|
kms-gui-unraid:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -58,12 +76,21 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const { Buffer } = require('node:buffer');
|
const { Buffer } = require('node:buffer');
|
||||||
const etc = {
|
(async()=>{
|
||||||
semversuffix:"unraid",
|
try{
|
||||||
uid:99,
|
const master = await fetch('https://raw.githubusercontent.com/11notes/docker-kms/refs/heads/master/.json');
|
||||||
gid:100,
|
const dot = await master.json();
|
||||||
};
|
const etc = {
|
||||||
core.exportVariable('WORKFLOW_BASE64JSON', Buffer.from(JSON.stringify(etc)).toString('base64'));
|
version:dot.semver.version,
|
||||||
|
semversuffix:"unraid",
|
||||||
|
uid:99,
|
||||||
|
gid:100,
|
||||||
|
};
|
||||||
|
core.exportVariable('WORKFLOW_BASE64JSON', Buffer.from(JSON.stringify(etc)).toString('base64'));
|
||||||
|
}catch(e){
|
||||||
|
core.setFailed(`workflow failed: ${e}`);
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
|
||||||
- name: build downstream kms gui for unraid community
|
- name: build downstream kms gui for unraid community
|
||||||
uses: the-actions-org/workflow-dispatch@3133c5d135c7dbe4be4f9793872b6ef331b53bc7
|
uses: the-actions-org/workflow-dispatch@3133c5d135c7dbe4be4f9793872b6ef331b53bc7
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ Works with:
|
|||||||
name: "kms"
|
name: "kms"
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: "11notes/kms:1.0.0"
|
image: "11notes/kms:1.0.1"
|
||||||
environment:
|
environment:
|
||||||
TZ: "Europe/Zurich"
|
TZ: "Europe/Zurich"
|
||||||
volumes:
|
volumes:
|
||||||
@@ -52,7 +52,7 @@ services:
|
|||||||
restart: "always"
|
restart: "always"
|
||||||
|
|
||||||
gui:
|
gui:
|
||||||
image: "11notes/kms-gui:1.0.0"
|
image: "11notes/kms-gui:1.0.1"
|
||||||
depends_on:
|
depends_on:
|
||||||
app:
|
app:
|
||||||
condition: "service_healthy"
|
condition: "service_healthy"
|
||||||
@@ -102,7 +102,6 @@ slmgr /ato
|
|||||||
| `TZ` | [Time Zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) | |
|
| `TZ` | [Time Zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) | |
|
||||||
| `DEBUG` | Will activate debug option for container image and app (if available) | |
|
| `DEBUG` | Will activate debug option for container image and app (if available) | |
|
||||||
| `KMS_LOCALE` | see Microsoft LICD specification | 1033 (en-US) |
|
| `KMS_LOCALE` | see Microsoft LICD specification | 1033 (en-US) |
|
||||||
| `KMS_CLIENTCOUNT` | client count > 25 | 26 |
|
|
||||||
| `KMS_ACTIVATIONINTERVAL` | Retry unsuccessful after N minutes | 120 (2 hours) |
|
| `KMS_ACTIVATIONINTERVAL` | Retry unsuccessful after N minutes | 120 (2 hours) |
|
||||||
| `KMS_RENEWALINTERVAL` | re-activation after N minutes | 259200 (180 days) |
|
| `KMS_RENEWALINTERVAL` | re-activation after N minutes | 259200 (180 days) |
|
||||||
| `KMS_LOGLEVEL` | CRITICAL, ERROR, WARNING, INFO, DEBUG, MININFO | INFO |
|
| `KMS_LOGLEVEL` | CRITICAL, ERROR, WARNING, INFO, DEBUG, MININFO | INFO |
|
||||||
@@ -149,4 +148,4 @@ This image supports unraid by default. Simply add **-unraid** to any tag and the
|
|||||||
# ElevenNotes™️
|
# ElevenNotes™️
|
||||||
This image is provided to you at your own risk. Always make backups before updating an image to a different version. Check the [releases](https://github.com/11notes/docker-kms/releases) for breaking changes. If you have any problems with using this image simply raise an [issue](https://github.com/11notes/docker-kms/issues), thanks. If you have a question or inputs please create a new [discussion](https://github.com/11notes/docker-kms/discussions) instead of an issue. You can find all my other repositories on [github](https://github.com/11notes?tab=repositories).
|
This image is provided to you at your own risk. Always make backups before updating an image to a different version. Check the [releases](https://github.com/11notes/docker-kms/releases) for breaking changes. If you have any problems with using this image simply raise an [issue](https://github.com/11notes/docker-kms/issues), thanks. If you have a question or inputs please create a new [discussion](https://github.com/11notes/docker-kms/discussions) instead of an issue. You can find all my other repositories on [github](https://github.com/11notes?tab=repositories).
|
||||||
|
|
||||||
*created 20.05.2025, 15:15:49 (CET)*
|
*created 21.05.2025, 08:27:53 (CET)*
|
||||||
Reference in New Issue
Block a user