Add debug and change the docker login
This commit is contained in:
@@ -13,12 +13,18 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Login to Gitea Registry
|
||||||
uses: docker/login-action@v3
|
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.timothykim.net -u timothykim --password-stdin
|
||||||
with:
|
|
||||||
registry: git.timothykim.net
|
|
||||||
username: timothykim
|
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
||||||
|
|
||||||
- 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