mirror of
https://github.com/11notes/docker-kms-gui.git
synced 2025-11-13 17:06:09 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a04dad1275 | ||
|
|
cabd8fd912 | ||
|
|
87b0cb92ea | ||
|
|
0ad0cd2171 | ||
|
|
5426f03cc4 |
10
.github/workflows/docker.yml
vendored
10
.github/workflows/docker.yml
vendored
@@ -53,6 +53,7 @@ jobs:
|
|||||||
- name: init / checkout
|
- name: init / checkout
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
with:
|
with:
|
||||||
|
ref: ${{ github.ref_name }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: init / inputs to env
|
- name: init / inputs to env
|
||||||
@@ -259,11 +260,16 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: steps.github-readme.outcome == 'success'
|
if: steps.github-readme.outcome == 'success'
|
||||||
run: |
|
run: |
|
||||||
|
echo "commit: $(git rev-parse --short HEAD)"
|
||||||
|
echo "ref_name: ${{ github.ref_name }}"
|
||||||
|
echo "base_ref: ${{ github.base_ref }}"
|
||||||
|
echo "head_ref: ${{ github.head_ref }}"
|
||||||
|
|
||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git add .
|
git add .
|
||||||
git commit -m "update README.md"
|
git commit -m "auto update README.md"
|
||||||
git push
|
git push origin master
|
||||||
|
|
||||||
- name: docker / push README.md to docker hub
|
- name: docker / push README.md to docker hub
|
||||||
if: hashFiles('README.md') != ''
|
if: hashFiles('README.md') != ''
|
||||||
|
|||||||
3
.inputs
3
.inputs
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
"readme": "true",
|
"readme": "true",
|
||||||
"release": "true"
|
"release": "false",
|
||||||
|
"run-name": "docker"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -89,4 +89,4 @@ volumes:
|
|||||||
# 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-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. If you have a question or inputs please create a new [discussion](https://github.com/11notes/docker-kms-gui/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-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. If you have a question or inputs please create a new [discussion](https://github.com/11notes/docker-kms-gui/discussions) instead of an issue. You can find all my other repositories on [github](https://github.com/11notes?tab=repositories).
|
||||||
|
|
||||||
*created Wed, 19 Feb 2025 10:19:23 GMT*
|
*created Thu, 20 Feb 2025 05:57:37 GMT*
|
||||||
@@ -5,9 +5,9 @@ ARG APP_VERSION_SUFFIX=""
|
|||||||
# :: Build / templates
|
# :: Build / templates
|
||||||
FROM alpine/git AS templates
|
FROM alpine/git AS templates
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
git clone https://github.com/CustomIcon/pykms-frontend.git; \
|
git clone https://github.com/11notes/pykms-frontend.git; \
|
||||||
cd /git/pykms-frontend; \
|
cd /git/pykms-frontend; \
|
||||||
git reset --hard 9e789a5;
|
git reset --hard 33777b8;
|
||||||
|
|
||||||
# :: Header
|
# :: Header
|
||||||
FROM 11notes/kms:${APP_VERSION_PREFIX}${APP_VERSION}${APP_VERSION_SUFFIX}
|
FROM 11notes/kms:${APP_VERSION_PREFIX}${APP_VERSION}${APP_VERSION_SUFFIX}
|
||||||
@@ -60,12 +60,15 @@ ARG APP_VERSION_SUFFIX=""
|
|||||||
|
|
||||||
# :: add multi template option
|
# :: add multi template option
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
mkdir -p ${APP_ROOT}/.default/templates/py-kms; \
|
mkdir -p ${APP_ROOT}/.default/styles/py-kms/templates; \
|
||||||
mkdir -p ${APP_ROOT}/.default/templates/custom-icon; \
|
mkdir -p ${APP_ROOT}/.default/styles/custom-icon/templates; \
|
||||||
cp -R /opt/py-kms/templates/* ${APP_ROOT}/.default/templates/py-kms; \
|
cp -R /opt/py-kms/templates/* ${APP_ROOT}/.default/styles/py-kms/templates; \
|
||||||
rm -rf /opt/py-kms/templates;
|
cp -R /opt/py-kms/static/* ${APP_ROOT}/.default/styles/py-kms/static; \
|
||||||
|
rm -rf /opt/py-kms/templates; \
|
||||||
|
rm -rf /opt/py-kms/static;
|
||||||
|
|
||||||
COPY --from=templates /git/pykms-frontend/templates/ ${APP_ROOT}/.default/templates/custom-icon
|
COPY --from=templates /git/pykms-frontend/templates ${APP_ROOT}/.default/styles/custom-icon/templates
|
||||||
|
COPY --from=templates /git/pykms-frontend/static ${APP_ROOT}/.default/styles/custom-icon/static
|
||||||
|
|
||||||
# :: set correct permissions
|
# :: set correct permissions
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
|||||||
@@ -8,14 +8,17 @@
|
|||||||
|
|
||||||
# apply correct style
|
# apply correct style
|
||||||
rm -rf /opt/py-kms/templates
|
rm -rf /opt/py-kms/templates
|
||||||
TEMPLATE_DIR=${APP_ROOT}/.default/templates
|
rm -rf /opt/py-kms/static
|
||||||
|
TEMPLATE_DIR=${APP_ROOT}/.default/styles
|
||||||
case ${KMS_GUI_STYLE} in
|
case ${KMS_GUI_STYLE} in
|
||||||
py-kms)
|
py-kms)
|
||||||
ln -s ${TEMPLATE_DIR}/py-kms /opt/py-kms/templates
|
ln -s ${TEMPLATE_DIR}/py-kms/templates /opt/py-kms/templates
|
||||||
|
ln -s ${TEMPLATE_DIR}/py-kms/static /opt/py-kms/static
|
||||||
eleven log info "using ${KMS_GUI_STYLE} GUI style"
|
eleven log info "using ${KMS_GUI_STYLE} GUI style"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
ln -s ${TEMPLATE_DIR}/custom-icon /opt/py-kms/templates
|
ln -s ${TEMPLATE_DIR}/custom-icon/templates /opt/py-kms/templates
|
||||||
|
ln -s ${TEMPLATE_DIR}/custom-icon/static /opt/py-kms/static
|
||||||
eleven log info "using default GUI style"
|
eleven log info "using default GUI style"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user