Add debug and change the docker login
This commit is contained in:
@@ -13,12 +13,18 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Debug secret
|
||||
run: |
|
||||
if [ -z "$TOKEN" ]; then
|
||||
echo "SECRET IS EMPTY"
|
||||
else
|
||||
echo "SECRET IS SET (length: ${#TOKEN})"
|
||||
fi
|
||||
env:
|
||||
TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Login to Gitea Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.timothykim.net
|
||||
username: timothykim
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.timothykim.net -u timothykim --password-stdin
|
||||
|
||||
- name: Build and Push
|
||||
uses: docker/build-push-action@v5
|
||||
|
||||
Reference in New Issue
Block a user