diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 4764306..1ac1247 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -43,7 +43,10 @@ jobs: - name: Deploy to cluster env: KUBECONFIG: /tmp/kubeconfig.yaml + NAMESPACE: ayaume + APP: ${{ steps.meta.outputs.REPO_NAME }} + IMAGE: ${{ vars.REGISTRY_URL }}/${{ steps.meta.outputs.REPO_NAME }}:${{ github.sha }} shell: bash run: | echo "${{ secrets.KUBE_CONFIG }}" > $KUBECONFIG - kubectl apply -f manifests/ + kubectl -n $NAMESPACE set image deployment/$APP $APP=$IMAGE