Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9a906ec55c | |||
| 8b93585422 |
@@ -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
|
||||||
|
|||||||
2
main.go
2
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user