more debug
This commit is contained in:
@@ -13,18 +13,17 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Debug secret
|
- name: Debug network
|
||||||
run: |
|
run: |
|
||||||
if [ -z "$TOKEN" ]; then
|
echo "=== DNS resolve ==="
|
||||||
echo "SECRET IS EMPTY"
|
nslookup git.timothykim.net || echo "nslookup failed"
|
||||||
else
|
echo "=== Curl registry ==="
|
||||||
echo "SECRET IS SET (length: ${#TOKEN})"
|
curl -vk https://git.timothykim.net/v2/ 2>&1 | head -30
|
||||||
fi
|
echo "=== Ping ==="
|
||||||
env:
|
ping -c 2 git.timothykim.net || echo "ping failed"
|
||||||
TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
|
||||||
|
|
||||||
- name: Login to Gitea Registry
|
- name: Login to Gitea Registry
|
||||||
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.timothykim.net -u timothykim --password-stdin
|
run: echo "${{ secrets.GITEA_TOKEN }}" | docker login git.timothykim.net -u ${{ gitea.actor }} --password-stdin
|
||||||
|
|
||||||
- name: Build and Push
|
- name: Build and Push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
|||||||
Reference in New Issue
Block a user