Skip to content

Commit 23892c6

Browse files
committed
switch to next branch of kms base image
1 parent 58f22ed commit 23892c6

File tree

6 files changed

+40
-20
lines changed

6 files changed

+40
-20
lines changed

.github/workflows/docker.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@ name: create and publish docker image
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
release:
7+
description: 'create release or not'
8+
required: false
9+
default: true
10+
type: 'boolean'
511
push:
612
tags:
713
- 'v*'
814

915
env:
1016
DOCKER_USERNAME: 11notes
17+
RELEASE: true
1118

1219
jobs:
1320
build-and-push-image:
@@ -36,19 +43,27 @@ jobs:
3643
export LOCAL_SEMVER_MAJOR=$(awk -F. '{ print $1 }' <<< ${json_version})
3744
export LOCAL_SEMVER_MINOR=$(awk -F. '{ print $2 }' <<< ${json_version})
3845
export LOCAL_SEMVER_PATCH=$(awk -F. '{ print $3 }' <<< ${json_version})
39-
export LOCAL_TAGS="${json_image}:latest"
46+
export LOCAL_TAGS="${json_image}:${LOCAL_SHA}"
4047
if [ ! -z ${LOCAL_SEMVER_MAJOR} ]; then LOCAL_TAGS="${LOCAL_TAGS},${json_image}:${LOCAL_SEMVER_MAJOR}"; fi
4148
if [ ! -z ${LOCAL_SEMVER_MINOR} ]; then LOCAL_TAGS="${LOCAL_TAGS},${json_image}:${LOCAL_SEMVER_MAJOR}.${LOCAL_SEMVER_MINOR}"; fi
4249
if [ ! -z ${LOCAL_SEMVER_PATCH} ]; then LOCAL_TAGS="${LOCAL_TAGS},${json_image}:${LOCAL_SEMVER_MAJOR}.${LOCAL_SEMVER_MINOR}.${LOCAL_SEMVER_PATCH}"; fi
4350
if echo "${LOCAL_TAGS}" | grep -q "${json_stable}" ; then LOCAL_TAGS="${LOCAL_TAGS},${json_image}:stable"; fi
51+
if echo "${LOCAL_TAGS}" | grep -q "${json_latest}" ; then LOCAL_TAGS="${LOCAL_TAGS},${json_image}:latest"; fi
4452
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
45-
LOCAL_TAGS="${LOCAL_TAGS},${json_image}:${LOCAL_SHA}"
4653
echo "IMAGE_TAGS=${LOCAL_TAGS}" >> $GITHUB_ENV
4754
4855
: # if for whatever reason UID/GID must be changed at build time
4956
echo "IMAGE_UID=${json_uid:-1000}" >> $GITHUB_ENV
5057
echo "IMAGE_GID=${json_gid:-1000}" >> $GITHUB_ENV
5158
59+
: # echo inputs
60+
echo "${{ toJSON(github.event.inputs) }}"
61+
62+
- name: github / disable release
63+
if: ${{ inputs.release != null && inputs.release == false }}
64+
run: |
65+
echo "RELEASE=false" >> $GITHUB_ENV
66+
5267
- name: docker / login to hub
5368
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
5469
with:
@@ -88,6 +103,10 @@ jobs:
88103
image: ${{ env.json_image }}:grype
89104
severity-cutoff: high
90105

106+
- name: grype / report / print
107+
if: success() || failure()
108+
run: cat ${{ steps.scan.outputs.sarif }}
109+
91110
- name: grype / delete tag
92111
if: success() || failure()
93112
run: |
@@ -102,9 +121,6 @@ jobs:
102121
with:
103122
sarif_file: ${{ steps.scan.outputs.sarif }}
104123

105-
- name: grype / report / print
106-
run: cat ${{ steps.scan.outputs.sarif }}
107-
108124
- name: docker / build & push
109125
uses: docker/build-push-action@67a2d409c0a876cbe6b11854e3e25193efe4e62d
110126
with:
@@ -128,9 +144,11 @@ jobs:
128144
${{ env.IMAGE_TAGS }}
129145
130146
- name: github / create release notes
147+
if: ${{ env.RELEASE == 'true' && hashFiles('RELEASE.md') != '' }}
131148
env:
132149
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
133-
run: gh release create ${{ github.ref_name }} -F RELEASE.md
150+
run: |
151+
gh release create ${{ github.ref_name }} -F RELEASE.md
134152
135153
- name: github / update description and set repo defaults
136154
run: |

.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
"image":"11notes/kms-gui",
33
"description":"Activate any version of Windows and Office, forever",
44
"name":"kms-gui",
5-
"version":"646f476",
5+
"version":"465f4d1",
66
"root":"/kms",
77

8-
"stable":"646f476",
9-
"parent":"11notes/kms:646f476"
8+
"stable":"465f4d1",
9+
"latest":"465f4d1",
10+
"parent":"11notes/kms:465f4d1"
1011
}

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![Banner](https://github.com/11notes/defaults/blob/main/static/img/banner.png?raw=true)
22

33
# 🏔️ kms-gui on Alpine
4-
[<img src="https://img.shields.io/badge/github-source-blue?logo=github&color=040308">](https://github.com/11notes/docker-kms-gui)![size](https://img.shields.io/docker/image-size/11notes/kms-gui/646f476?color=0eb305)![version](https://img.shields.io/docker/v/11notes/kms-gui/646f476?color=eb7a09)![pulls](https://img.shields.io/docker/pulls/11notes/kms-gui?color=2b75d6)[<img src="https://img.shields.io/github/issues/11notes/docker-kms-gui?color=7842f5">](https://github.com/11notes/docker-kms-gui/issues)
4+
[<img src="https://img.shields.io/badge/github-source-blue?logo=github&color=040308">](https://github.com/11notes/docker-kms-gui)![size](https://img.shields.io/docker/image-size/11notes/kms-gui/465f4d1?color=0eb305)![version](https://img.shields.io/docker/v/11notes/kms-gui/465f4d1?color=eb7a09)![pulls](https://img.shields.io/docker/pulls/11notes/kms-gui?color=2b75d6)[<img src="https://img.shields.io/github/issues/11notes/docker-kms-gui?color=7842f5">](https://github.com/11notes/docker-kms-gui/issues)
55

66
**Activate any version of Windows and Office, forever**
77

@@ -25,7 +25,7 @@ services:
2525
- "1688:1688/tcp"
2626
restart: always
2727
kms-gui:
28-
image: "11notes/kms-gui:646f476"
28+
image: "11notes/kms-gui:465f4d1"
2929
container_name: "kms-gui"
3030
environment:
3131
TZ: Europe/Zurich
@@ -42,21 +42,21 @@ volumes:
4242
| Parameter | Value | Default |
4343
| --- | --- | --- |
4444
| `TZ` | [Time Zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) | |
45-
| `DEBUG` | Show debug messages from image **not** app | |
45+
| `DEBUG` | Will activate debug option for container image and app (if available) | |
4646

4747
# SOURCE 💾
4848
* [11notes/kms-gui](https://github.com/11notes/docker-kms-gui)
4949

5050
# PARENT IMAGE 🏛️
51-
* [11notes/kms:646f476](https://hub.docker.com/r/11notes/kms)
51+
* [11notes/kms:465f4d1](https://hub.docker.com/r/11notes/kms)
5252

5353
# BUILT WITH 🧰
5454
* [py-kms](https://github.com/Py-KMS-Organization/py-kms)
5555
* [alpine](https://alpinelinux.org)
5656

57-
# TIPS 📌
58-
* Use a reverse proxy like Traefik, Nginx, HAproxy to terminate TLS with a valid certificate
59-
* Use Let’s Encrypt certificates to protect your SSL endpoints
57+
# GENERAL TIPS 📌
58+
* Use a reverse proxy like Traefik, Nginx, HAproxy to terminate TLS and to protect your endpoints
59+
* Use Let’s Encrypt DNS-01 challenge to obtain valid SSL certificates for your services
6060

6161
# ElevenNotes™️
62-
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).
62+
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).

RELEASE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
### 🪄 Features
2-
* add DEBUG option via enivornment variable DEBUG
1+
### 🚀 Updates
2+
* switch to next branch of kms base image

arch.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ ARG APP_VERSION=stable
4646
RUN set -ex; \
4747
chmod +x -R /usr/local/bin; \
4848
chown -R 1000:1000 \
49+
/usr/local/bin \
4950
${APP_ROOT} \
5051
/opt/py-kms;
5152

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
- "1688:1688/tcp"
1212
restart: always
1313
kms-gui:
14-
image: "11notes/kms-gui:646f476"
14+
image: "11notes/kms-gui:465f4d1"
1515
container_name: "kms-gui"
1616
environment:
1717
TZ: Europe/Zurich

0 commit comments

Comments
 (0)