Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9a906ec55c | |||
| 8b93585422 | |||
| 59dd16d4ac |
@@ -14,8 +14,8 @@ jobs:
|
|||||||
- name: Login to Gitea
|
- name: Login to Gitea
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ secrets.REGISTRY_URL }} # gitea.scu.si
|
registry: ${{ vars.REGISTRY_URL }} # gitea.scu.si
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
@@ -26,5 +26,5 @@ jobs:
|
|||||||
# Hier wird die Git-Referenz automatisch als Docker-Tag genutzt
|
# Hier wird die Git-Referenz automatisch als Docker-Tag genutzt
|
||||||
#tags: gitea.scu.si/florianwalther/password-generator:${{ gitea.ref_name }}
|
#tags: gitea.scu.si/florianwalther/password-generator:${{ gitea.ref_name }}
|
||||||
tags: |
|
tags: |
|
||||||
gitea.scu.si/florianwalther/password-generator:${{ gitea.ref_name }}
|
gitea.scu.si/florian.walther/password-generator:${{ gitea.ref_name }}
|
||||||
gitea.scu.si/florianwalther/password-generator:latest
|
gitea.scu.si/florian.walther/password-generator:latest
|
||||||
|
|||||||
4
main.go
4
main.go
@@ -119,7 +119,7 @@ func helpHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
<script>
|
<script>
|
||||||
// Dynamisch den aktuellen Hostnamen ermitteln
|
// Dynamisch den aktuellen Hostnamen ermitteln
|
||||||
const currentHost = window.location.host;
|
const currentHost = window.location.host;
|
||||||
const apiEndpoint = "http://" + currentHost + "/api/password";
|
const apiEndpoint = "https://" + currentHost + "/api/password";
|
||||||
|
|
||||||
// Hostnamen in die Beispiele eintragen
|
// Hostnamen in die Beispiele eintragen
|
||||||
document.getElementById("api-endpoint").textContent = apiEndpoint;
|
document.getElementById("api-endpoint").textContent = apiEndpoint;
|
||||||
@@ -256,7 +256,7 @@ html := fmt.Sprintf(
|
|||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<a href="/help" class="help-link">API</a>
|
<a href="/help" class="help-link">API</a>
|
||||||
<a class="about-link" href="https://gitea.scu.si/FlorianWalther/Web-Password">code</a>
|
<a class="about-link" href="https://gitea.scu.si/Florian.Walther/Web-Password">code</a>
|
||||||
<h1>Generiertes Passwort</h1>
|
<h1>Generiertes Passwort</h1>
|
||||||
<div id="password">%s</div>
|
<div id="password">%s</div>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
|
|||||||
Reference in New Issue
Block a user