From 7e5b0847c9a37534b5f19789e771b7ceb97035f8 Mon Sep 17 00:00:00 2001 From: ange Date: Sat, 17 Aug 2024 23:04:26 +0700 Subject: [PATCH] feat: docker build --- .gitea/workflows/deploy.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 072a1e1..2836cc8 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -15,10 +15,17 @@ jobs: fi cat <> .env BASE_URL="$BASE_URL" - REF_NAME="${{ gitea.ref_name }}" + REGISTRY="$(sed 's .*:// ' <<< ${{ gitea.server_url }})" + IMAGEAPP="$REGISTRY/${{ gitea.repository }}:${{ gitea.ref_name }}" EOF cat .env + - uses: actions/kaniko@v1 + with: + dockerfile: debian/Dockerfile + password: "${{ secrets.PKGRW }}" + - uses: actions/k8sdeploy@v1 with: kubeconfig: "${{ secrets.K8S }}" + registry_password: "${{ secrets.PKGRW }}"