Update .gitea/workflows/dockerbuild.yml
Some checks failed
Build and Publish TVJ EPG Image / build (push) Failing after 0s
Some checks failed
Build and Publish TVJ EPG Image / build (push) Failing after 0s
This commit is contained in:
@@ -26,7 +26,7 @@ jobs:
|
|||||||
|
|
||||||
if [ -n "${GITEA_TOKEN:-}" ]; then
|
if [ -n "${GITEA_TOKEN:-}" ]; then
|
||||||
CLONE_URL="${BASE}/${REPO}.git"
|
CLONE_URL="${BASE}/${REPO}.git"
|
||||||
CLONE_URL="$(echo "$CLONE_URL" | sed -E 's#^https://#https://oauth2:'"${GITEA_TOKEN}"'@#')"
|
#CLONE_URL="$(echo "$CLONE_URL" | sed -E 's#^https://#https://oauth2:'"${GITEA_TOKEN}"'@#')"
|
||||||
git clone "$CLONE_URL" .
|
git clone "$CLONE_URL" .
|
||||||
else
|
else
|
||||||
git clone "${BASE}/${REPO}.git" .
|
git clone "${BASE}/${REPO}.git" .
|
||||||
@@ -48,14 +48,13 @@ jobs:
|
|||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
- name: Docker login
|
- name: Docker login
|
||||||
env:
|
env:
|
||||||
REGISTRY: ${{ vars.REGISTRY }} # e.g. loxthelion.com:5050 or ghcr.io
|
REGISTRY: loxthelion.com/gitea # e.g. loxthelion.com:5050 or ghcr.io
|
||||||
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
||||||
REGISTRY_TOKEN: ${{ secrets.TEA_TOKEN }}
|
REGISTRY_TOKEN: ${{ secrets.TEA_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
echo "$REGISTRY_TOKEN" | docker login "$REGISTRY" \
|
echo "$REGISTRY_TOKEN" | docker login "$REGISTRY" \
|
||||||
-u "$REGISTRY_USER" \
|
-u "$REGISTRY_USER" \
|
||||||
--password-stdin
|
--password-stdin
|
||||||
--tls-verify=false
|
|
||||||
|
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
# Build image with Docker (multi-tag)
|
# Build image with Docker (multi-tag)
|
||||||
|
|||||||
Reference in New Issue
Block a user