This commit is contained in:
36
.gitea/workflows/build-docker-image.yaml
Normal file
36
.gitea/workflows/build-docker-image.yaml
Normal file
@ -0,0 +1,36 @@
|
||||
name: build docker image
|
||||
|
||||
on:
|
||||
- push
|
||||
|
||||
jobs:
|
||||
docker-build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: gitea.stuzer.link
|
||||
username: ${{ gitea.repository_owner }}
|
||||
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
build-args: |
|
||||
APP_URL="${{ vars.APP_URL }}"
|
||||
tags: gitea.stuzer.link/stuzer05/docker-ldap-change-password-web-ui:latest
|
||||
cache-from: type=registry,ref=gitea.stuzer.link/stuzer05/docker-ldap-change-password-web-ui:latest
|
||||
cache-to: type=inline
|
18
.gitignore
vendored
18
.gitignore
vendored
@ -1,16 +1,2 @@
|
||||
# Binaries for programs and plugins
|
||||
*.exe
|
||||
*.dll
|
||||
*.so
|
||||
*.dylib
|
||||
|
||||
# Test binary, build with `go test -c`
|
||||
*.test
|
||||
|
||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||
*.out
|
||||
|
||||
# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
|
||||
.glide/
|
||||
vendor/
|
||||
*.lock
|
||||
.idea
|
||||
docker-ldap-change-password-web-ui
|
11
go.mod
Normal file
11
go.mod
Normal file
@ -0,0 +1,11 @@
|
||||
module gitea.stuzer.link/stuzer05/docker-ldap-change-password-web-ui
|
||||
|
||||
go 1.23.4
|
||||
|
||||
require (
|
||||
github.com/dchest/captcha v1.1.0
|
||||
github.com/npenkov/ldap-passwd-webui v0.0.0-20200503090523-c11e4f5d081d
|
||||
gopkg.in/ldap.v2 v2.5.1
|
||||
)
|
||||
|
||||
require gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d // indirect
|
8
go.sum
Normal file
8
go.sum
Normal file
@ -0,0 +1,8 @@
|
||||
github.com/dchest/captcha v1.1.0 h1:2kt47EoYUUkaISobUdTbqwx55xvKOJxyScVfw25xzhQ=
|
||||
github.com/dchest/captcha v1.1.0/go.mod h1:7zoElIawLp7GUMLcj54K9kbw+jEyvz2K0FDdRRYhvWo=
|
||||
github.com/npenkov/ldap-passwd-webui v0.0.0-20200503090523-c11e4f5d081d h1:LglLbl2j5+1NlfannoAB4zvvq8yxn/Y0btpChkUGm/4=
|
||||
github.com/npenkov/ldap-passwd-webui v0.0.0-20200503090523-c11e4f5d081d/go.mod h1:yXYw3lzzjOzoDQlTgKx8Je1H0EeLcd6WGJxiV5ZzrZY=
|
||||
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d h1:TxyelI5cVkbREznMhfzycHdkp5cLA7DpE+GKjSslYhM=
|
||||
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw=
|
||||
gopkg.in/ldap.v2 v2.5.1 h1:wiu0okdNfjlBzg6UWvd1Hn8Y+Ux17/u/4nlk4CQr6tU=
|
||||
gopkg.in/ldap.v2 v2.5.1/go.mod h1:oI0cpe/D7HRtBQl8aTg+ZmzFUAvu4lsv3eLXMLGFxWk=
|
@ -21,21 +21,6 @@
|
||||
}
|
||||
e.src = src + "?" + q
|
||||
}
|
||||
function playAudio() {
|
||||
var le = document.getElementById("lang");
|
||||
var lang = le.options[le.selectedIndex].value;
|
||||
var e = document.getElementById('audio')
|
||||
setSrcQuery(e, "lang=" + lang)
|
||||
e.style.display = 'block';
|
||||
e.autoplay = 'true';
|
||||
return false;
|
||||
}
|
||||
function changeLang() {
|
||||
var e = document.getElementById('audio')
|
||||
if (e.style.display == 'block') {
|
||||
playAudio();
|
||||
}
|
||||
}
|
||||
function reload() {
|
||||
setSrcQuery(document.getElementById('image'), "reload=" + (new Date()).getTime());
|
||||
setSrcQuery(document.getElementById('audio'), (new Date()).getTime());
|
||||
|
Reference in New Issue
Block a user