Skip to content

Error trying to use the action on my project #1

@danazkari

Description

@danazkari

I tried using azure/setup-kubectl action, providing the documented inputs, and I'm getting the next error:

image

I would provide more logs if I could, but that's as much as I get from GH Actions

This is the code I used to try to use the action:

name: Publish a new production release

on:
  create:
    tags:
      - v*

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - uses: azure/setup-kubectl@v1
      with:
        version: '1.15.0'
      id: install
      name: install kubectl client
    - name: create kubernetes config
      run: |
        cat << EOF > kube-config
        apiVersion: v1
        clusters:
        - cluster:
            certificate-authority-data: ${{ secrets.CLUSTER_CERT_AUTH_DATA }}
            server: ${{ secrets.CLUSTER_IP }}
          name: kubernetes
        contexts:
        - context:
            cluster: kubernetes
            user: kubernetes-admin
          name: kubernetes-admin@kubernetes
        current-context: kubernetes-admin@kubernetes
        kind: Config
        preferences: {}
        users:
        - name: kubernetes-admin
          user:
            client-certificate-data: ${{ secrets.CLIENT_CERT_DATA }}
            client-key-data: ${{ secrets.CLIENT_KEY_DATA }}
        EOF
        export KUBECONFIG=$(pwd)/kube-config
    - name: build kubernetes manifest files and deploy them
      run: |
        make build-kubernetes deploy-kubernetes

Please let me know if there's anything else I can provide to help solve this, I'm pretty sure I'm missing something super obvious but I can't put my finger on it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions