mirror of
https://github.com/11notes/docker-kms-gui.git
synced 2025-10-25 00:53:53 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
23892c6d0b |
30
.github/workflows/docker.yml
vendored
30
.github/workflows/docker.yml
vendored
@@ -2,12 +2,19 @@ name: create and publish docker image
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
release:
|
||||
description: 'create release or not'
|
||||
required: false
|
||||
default: true
|
||||
type: 'boolean'
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
env:
|
||||
DOCKER_USERNAME: 11notes
|
||||
RELEASE: true
|
||||
|
||||
jobs:
|
||||
build-and-push-image:
|
||||
@@ -36,19 +43,27 @@ jobs:
|
||||
export LOCAL_SEMVER_MAJOR=$(awk -F. '{ print $1 }' <<< ${json_version})
|
||||
export LOCAL_SEMVER_MINOR=$(awk -F. '{ print $2 }' <<< ${json_version})
|
||||
export LOCAL_SEMVER_PATCH=$(awk -F. '{ print $3 }' <<< ${json_version})
|
||||
export LOCAL_TAGS="${json_image}:latest"
|
||||
export LOCAL_TAGS="${json_image}:${LOCAL_SHA}"
|
||||
if [ ! -z ${LOCAL_SEMVER_MAJOR} ]; then LOCAL_TAGS="${LOCAL_TAGS},${json_image}:${LOCAL_SEMVER_MAJOR}"; fi
|
||||
if [ ! -z ${LOCAL_SEMVER_MINOR} ]; then LOCAL_TAGS="${LOCAL_TAGS},${json_image}:${LOCAL_SEMVER_MAJOR}.${LOCAL_SEMVER_MINOR}"; fi
|
||||
if [ ! -z ${LOCAL_SEMVER_PATCH} ]; then LOCAL_TAGS="${LOCAL_TAGS},${json_image}:${LOCAL_SEMVER_MAJOR}.${LOCAL_SEMVER_MINOR}.${LOCAL_SEMVER_PATCH}"; fi
|
||||
if echo "${LOCAL_TAGS}" | grep -q "${json_stable}" ; then LOCAL_TAGS="${LOCAL_TAGS},${json_image}:stable"; fi
|
||||
if echo "${LOCAL_TAGS}" | grep -q "${json_latest}" ; then LOCAL_TAGS="${LOCAL_TAGS},${json_image}:latest"; fi
|
||||
if [ ! -z ${json_tags} ]; then SPECIAL_LOCAL_TAGS=$(echo ${json_tags} | sed 's/,/ /g'); for LOCAL_TAG in ${json_tags}; do LOCAL_TAGS="${LOCAL_TAGS},${json_image}:${LOCAL_TAG}"; done; fi
|
||||
LOCAL_TAGS="${LOCAL_TAGS},${json_image}:${LOCAL_SHA}"
|
||||
echo "IMAGE_TAGS=${LOCAL_TAGS}" >> $GITHUB_ENV
|
||||
|
||||
: # if for whatever reason UID/GID must be changed at build time
|
||||
echo "IMAGE_UID=${json_uid:-1000}" >> $GITHUB_ENV
|
||||
echo "IMAGE_GID=${json_gid:-1000}" >> $GITHUB_ENV
|
||||
|
||||
: # echo inputs
|
||||
echo "${{ toJSON(github.event.inputs) }}"
|
||||
|
||||
- name: github / disable release
|
||||
if: ${{ inputs.release != null && inputs.release == false }}
|
||||
run: |
|
||||
echo "RELEASE=false" >> $GITHUB_ENV
|
||||
|
||||
- name: docker / login to hub
|
||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
|
||||
with:
|
||||
@@ -88,6 +103,10 @@ jobs:
|
||||
image: ${{ env.json_image }}:grype
|
||||
severity-cutoff: high
|
||||
|
||||
- name: grype / report / print
|
||||
if: success() || failure()
|
||||
run: cat ${{ steps.scan.outputs.sarif }}
|
||||
|
||||
- name: grype / delete tag
|
||||
if: success() || failure()
|
||||
run: |
|
||||
@@ -102,9 +121,6 @@ jobs:
|
||||
with:
|
||||
sarif_file: ${{ steps.scan.outputs.sarif }}
|
||||
|
||||
- name: grype / report / print
|
||||
run: cat ${{ steps.scan.outputs.sarif }}
|
||||
|
||||
- name: docker / build & push
|
||||
uses: docker/build-push-action@67a2d409c0a876cbe6b11854e3e25193efe4e62d
|
||||
with:
|
||||
@@ -128,9 +144,11 @@ jobs:
|
||||
${{ env.IMAGE_TAGS }}
|
||||
|
||||
- name: github / create release notes
|
||||
if: ${{ env.RELEASE == 'true' && hashFiles('RELEASE.md') != '' }}
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: gh release create ${{ github.ref_name }} -F RELEASE.md
|
||||
run: |
|
||||
gh release create ${{ github.ref_name }} -F RELEASE.md
|
||||
|
||||
- name: github / update description and set repo defaults
|
||||
run: |
|
||||
|
||||
7
.json
7
.json
@@ -2,9 +2,10 @@
|
||||
"image":"11notes/kms-gui",
|
||||
"description":"Activate any version of Windows and Office, forever",
|
||||
"name":"kms-gui",
|
||||
"version":"646f476",
|
||||
"version":"465f4d1",
|
||||
"root":"/kms",
|
||||
|
||||
"stable":"646f476",
|
||||
"parent":"11notes/kms:646f476"
|
||||
"stable":"465f4d1",
|
||||
"latest":"465f4d1",
|
||||
"parent":"11notes/kms:465f4d1"
|
||||
}
|
||||
16
README.md
16
README.md
@@ -1,7 +1,7 @@
|
||||

|
||||
|
||||
# 🏔️ kms-gui on Alpine
|
||||
[<img src="https://img.shields.io/badge/github-source-blue?logo=github&color=040308">](https://github.com/11notes/docker-kms-gui)[<img src="https://img.shields.io/github/issues/11notes/docker-kms-gui?color=7842f5">](https://github.com/11notes/docker-kms-gui/issues)
|
||||
[<img src="https://img.shields.io/badge/github-source-blue?logo=github&color=040308">](https://github.com/11notes/docker-kms-gui)[<img src="https://img.shields.io/github/issues/11notes/docker-kms-gui?color=7842f5">](https://github.com/11notes/docker-kms-gui/issues)
|
||||
|
||||
**Activate any version of Windows and Office, forever**
|
||||
|
||||
@@ -25,7 +25,7 @@ services:
|
||||
- "1688:1688/tcp"
|
||||
restart: always
|
||||
kms-gui:
|
||||
image: "11notes/kms-gui:646f476"
|
||||
image: "11notes/kms-gui:465f4d1"
|
||||
container_name: "kms-gui"
|
||||
environment:
|
||||
TZ: Europe/Zurich
|
||||
@@ -42,21 +42,21 @@ volumes:
|
||||
| Parameter | Value | Default |
|
||||
| --- | --- | --- |
|
||||
| `TZ` | [Time Zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) | |
|
||||
| `DEBUG` | Show debug messages from image **not** app | |
|
||||
| `DEBUG` | Will activate debug option for container image and app (if available) | |
|
||||
|
||||
# SOURCE 💾
|
||||
* [11notes/kms-gui](https://github.com/11notes/docker-kms-gui)
|
||||
|
||||
# PARENT IMAGE 🏛️
|
||||
* [11notes/kms:646f476](https://hub.docker.com/r/11notes/kms)
|
||||
* [11notes/kms:465f4d1](https://hub.docker.com/r/11notes/kms)
|
||||
|
||||
# BUILT WITH 🧰
|
||||
* [py-kms](https://github.com/Py-KMS-Organization/py-kms)
|
||||
* [alpine](https://alpinelinux.org)
|
||||
|
||||
# TIPS 📌
|
||||
* Use a reverse proxy like Traefik, Nginx, HAproxy to terminate TLS with a valid certificate
|
||||
* Use Let’s Encrypt certificates to protect your SSL endpoints
|
||||
# GENERAL TIPS 📌
|
||||
* Use a reverse proxy like Traefik, Nginx, HAproxy to terminate TLS and to protect your endpoints
|
||||
* Use Let’s Encrypt DNS-01 challenge to obtain valid SSL certificates for your services
|
||||
|
||||
# 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-gui/releases) for breaking changes. If you have any problems with using this image simply raise an [issue](https://github.com/11notes/docker-kms-gui/issues), thanks . You can find all my 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-gui/releases) for breaking changes. If you have any problems with using this image simply raise an [issue](https://github.com/11notes/docker-kms-gui/issues), thanks. You can find all my repositories on [github](https://github.com/11notes?tab=repositories).
|
||||
@@ -1,2 +1,2 @@
|
||||
### 🪄 Features
|
||||
* add DEBUG option via enivornment variable DEBUG
|
||||
### 🚀 Updates
|
||||
* switch to next branch of kms base image
|
||||
@@ -46,6 +46,7 @@ ARG APP_VERSION=stable
|
||||
RUN set -ex; \
|
||||
chmod +x -R /usr/local/bin; \
|
||||
chown -R 1000:1000 \
|
||||
/usr/local/bin \
|
||||
${APP_ROOT} \
|
||||
/opt/py-kms;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ services:
|
||||
- "1688:1688/tcp"
|
||||
restart: always
|
||||
kms-gui:
|
||||
image: "11notes/kms-gui:646f476"
|
||||
image: "11notes/kms-gui:465f4d1"
|
||||
container_name: "kms-gui"
|
||||
environment:
|
||||
TZ: Europe/Zurich
|
||||
|
||||
Reference in New Issue
Block a user