Update .github/workflows/main.yml
Some checks failed
Jekyll site CI / docker (push) Failing after 10s
Some checks failed
Jekyll site CI / docker (push) Failing after 10s
This commit is contained in:
parent
f760f837ad
commit
b5441ba1ae
15
.github/workflows/main.yml
vendored
15
.github/workflows/main.yml
vendored
@ -10,10 +10,17 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Debug Gitea Context
|
||||||
|
env:
|
||||||
|
GITEA_CONTEXT: ${{ toJson(gitea) }}
|
||||||
|
run: |
|
||||||
|
echo "Gitea Context:"
|
||||||
|
echo "$GITEA_CONTEXT"
|
||||||
|
|
||||||
- name: Debug - Print Gitea context
|
- name: Debug - Print Gitea context
|
||||||
run: |
|
run: |
|
||||||
echo "LOCAL_REGISTRY variable is: ${{ vars.REGISTRY_HOST }}"
|
echo "LOCAL_REGISTRY variable is: ${{ vars.LOCAL_REGISTRY }}"
|
||||||
echo "Gitea Actor: ${{ gitea.actor }}"
|
echo "Gitea Actor: ${{ gitea.actor }}"
|
||||||
echo "Repository Owner: ${{ gitea.repository_owner }}"
|
echo "Repository Owner: ${{ gitea.repository_owner }}"
|
||||||
echo "Repository Name: ${{ gitea.repository_name }}"
|
echo "Repository Name: ${{ gitea.repository_name }}"
|
||||||
@ -26,7 +33,7 @@ jobs:
|
|||||||
# (Test credentials early, befor failing late in the process.)
|
# (Test credentials early, befor failing late in the process.)
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{vars.REGISTRY_HOST}}
|
registry: ${{vars.LOCAL_REGISTRY}}
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.GITEA_TOKEN }}
|
password: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
||||||
@ -51,5 +58,5 @@ jobs:
|
|||||||
platforms: linux/amd64 # ,linux/arm64
|
platforms: linux/amd64 # ,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ vars.REGISTRY_HOST }}/${{ gitea.repository_owner }}/${{ gitea.repository_name }}:latest
|
${{ vars.LOCAL_REGISTRY }}/${{ gitea.repository_owner }}/${{ gitea.repository_name }}:latest
|
||||||
${{ vars.REGISTRY_HOST }}/${{ gitea.repository_owner }}/${{ gitea.repository_name }}:${{ gitea.sha }}
|
${{ vars.LOCAL_REGISTRY }}/${{ gitea.repository_owner }}/${{ gitea.repository_name }}:${{ gitea.sha }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user