diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 8173283..e6f125e 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -21,13 +21,6 @@ jobs: uses: actions/checkout@v6 with: fetch-depth: 1 - - name: Cache checkout - uses: actions/cache@v3 - with: - path: ${{ gitea.workspace }} - key: ${{ runner.os }}-checkout-${{ hashFiles('**/*') }} - restore-keys: | - ${{ runner.os }}-checkout- - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - run: echo "🖥️ The workflow is now ready to test your code on the runner." - name: List files in the repository @@ -36,22 +29,8 @@ jobs: - name: Check go version run: | go version - - name: Cache Go modules - uses: actions/cache@v3 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - name: Run golangci-lint uses: golangci/golangci-lint-action@v9 - - name: Cache golangci-lint - uses: actions/cache@v3 - with: - path: ~/.cache/golangci-lint - key: ${{ runner.os }}-golangci-lint-${{ hashFiles('.golangci.yml') }} - restore-keys: | - ${{ runner.os }}-golangci-lint- - name: Tests run: | cd ${{ gitea.workspace }} @@ -78,6 +57,7 @@ jobs: kubectl version --client - name: Set up Kubeconfig run: | + mkdir -p $HOME/.kube echo "${{ secrets.KUBECONFIG_DATA }}" | base64 --decode > $HOME/.kube/config - name: Deploy to Kubernetes run: |