5 Commits

Author SHA1 Message Date
ElevenNotes
bd566a8900 workflow issues 2025-02-10 12:07:24 +01:00
ElevenNotes
58a28d8852 workflow issues 2025-02-10 11:58:11 +01:00
ElevenNotes
44e604d964 release issues 2025-02-10 11:47:06 +01:00
ElevenNotes
c055cc3fb2 add ref:master 2025-02-10 11:35:39 +01:00
ElevenNotes
74661d19d9 add custom KMS DB 2025-02-10 11:19:37 +01:00
4 changed files with 1079 additions and 18 deletions

View File

@@ -4,17 +4,15 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
release: release:
description: 'create release or not' description: 'set WORKFLOW_GITHUB_RELEASE'
required: false required: true
default: true default: 'true'
type: 'boolean'
push: push:
tags: tags:
- 'v*' - 'v*'
env: env:
DOCKER_USERNAME: 11notes WORKFLOW_GITHUB_RELEASE: true
RELEASE: true
jobs: jobs:
build-and-push-image: build-and-push-image:
@@ -59,15 +57,15 @@ jobs:
: # echo inputs : # echo inputs
echo "${{ toJSON(github.event.inputs) }}" echo "${{ toJSON(github.event.inputs) }}"
- name: github / disable release - name: github / set workflow release
if: ${{ inputs.release != null && inputs.release == false }} if: github.event_name == 'workflow_dispatch'
run: | run: |
echo "RELEASE=false" >> $GITHUB_ENV echo "WORKFLOW_GITHUB_RELEASE=${{ inputs.release }}" >> $GITHUB_ENV
- name: docker / login to hub - name: docker / login to hub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with: with:
username: ${{ env.DOCKER_USERNAME }} username: 11notes
password: ${{ secrets.DOCKER_TOKEN }} password: ${{ secrets.DOCKER_TOKEN }}
- name: docker / setup qemu - name: docker / setup qemu
@@ -144,7 +142,7 @@ jobs:
${{ env.IMAGE_TAGS }} ${{ env.IMAGE_TAGS }}
- name: github / create release notes - name: github / create release notes
if: ${{ env.RELEASE == 'true' && hashFiles('RELEASE.md') != '' }} if: env.WORKFLOW_GITHUB_RELEASE == 'true' && hashFiles('RELEASE.md') != ''
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
@@ -169,7 +167,7 @@ jobs:
- name: docker / push README.md to docker hub - name: docker / push README.md to docker hub
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8
env: env:
DOCKER_USER: ${{ env.DOCKER_USERNAME }} DOCKER_USER: 11notes
DOCKER_PASS: ${{ secrets.DOCKER_TOKEN }} DOCKER_PASS: ${{ secrets.DOCKER_TOKEN }}
with: with:
destination_container_repo: ${{ env.json_image }} destination_container_repo: ${{ env.json_image }}
@@ -178,7 +176,8 @@ jobs:
readme_file: 'README.md' readme_file: 'README.md'
- name: github / dispatch workflow - name: github / dispatch workflow
if: ${{ env.json_dispatch_workflow != null }} if: env.json_dispatch_workflow != null
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc
with: with:
workflow: ${{ env.json_dispatch_workflow }} workflow: ${{ env.json_dispatch_workflow }}
token: "${{ secrets.REPOSITORY_TOKEN }}"

View File

@@ -1,10 +1,10 @@
name: build kms gui name: kms-gui
on: on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
cron: kms-gui:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: auto build and update downstream image - name: auto build and update downstream image
@@ -12,5 +12,6 @@ jobs:
with: with:
workflow: docker.yml workflow: docker.yml
repo: 11notes/docker-kms-gui repo: 11notes/docker-kms-gui
ref: master
token: "${{ secrets.REPOSITORY_TOKEN }}" token: "${{ secrets.REPOSITORY_TOKEN }}"
inputs: '{ "release": false }' inputs: '{ "release": "false" }'

View File

@@ -1,2 +1,3 @@
### 🪄 Features ### 🪄 Features
* downstream auto build * add Server 2025 KMS IDs by @ProfessorCha0s (thanks)
* add Office LTSC 2024 KMS IDs by @MrRubberDucky (thanks)

File diff suppressed because it is too large Load Diff