fix: imagename
All checks were successful
/ deploy (push) Successful in 11s

This commit is contained in:
ange 2024-08-17 23:25:58 +07:00
parent 7e5b0847c9
commit f23a6b672b
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -13,16 +13,16 @@ jobs:
else else
BASE_URL="${{ gitea.ref_name }}.$(tr / '\n' <<< "${{ gitea.repository }}" | tac | tr '\n' .)k8s.gmoker.com" BASE_URL="${{ gitea.ref_name }}.$(tr / '\n' <<< "${{ gitea.repository }}" | tac | tr '\n' .)k8s.gmoker.com"
fi fi
REGISTRY="$(sed 's .*:// ' <<< ${{ gitea.server_url }})"
cat <<EOF >> .env cat <<EOF >> .env
BASE_URL="$BASE_URL" BASE_URL="$BASE_URL"
REGISTRY="$(sed 's .*:// ' <<< ${{ gitea.server_url }})" REGISTRY="$REGISTRY"
IMAGEAPP="$REGISTRY/${{ gitea.repository }}:${{ gitea.ref_name }}" IMAGEAPP="$REGISTRY/${{ gitea.repository }}:${{ gitea.ref_name }}"
EOF EOF
cat .env cat .env
- uses: actions/kaniko@v1 - uses: actions/kaniko@v1
with: with:
dockerfile: debian/Dockerfile
password: "${{ secrets.PKGRW }}" password: "${{ secrets.PKGRW }}"
- uses: actions/k8sdeploy@v1 - uses: actions/k8sdeploy@v1