okteto / pipeline

Enable GitHub developers to trigger Okteto Pipelines from a GitHub Actions workflow
https://okteto.com
Apache License 2.0
15 stars 8 forks source link

Get not found error #21

Closed ledinhtuyenbkdn closed 2 years ago

ledinhtuyenbkdn commented 2 years ago

Hi sir, I'm getting an error when trigger pipeline. I checked my namespace on Okteto web, it is successfully deployed but I still got error.

Console output:

Deploying repository 'deploy_from_github_actions'...
Waiting for repository 'deploy_from_github_actions' to be deployed...
 x  Not found

And my workflow:

steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup context
        uses: okteto/context@latest
        with:
          token: ${{ secrets.OKTETO_TOKEN }}
      - name: Activate Namespace
        uses: okteto/namespace@latest
        with:
          name: ${{env.NAMESPACE}}
      - name: Trigger the pipeline
        uses: okteto/pipeline@main
        with:
          name: deploy_from_github_actions
          namespace: ${{env.NAMESPACE}}
          timeout: 8m
          skipIfExists: false
rberrelleza commented 2 years ago

If you're trying to create a preview environment, I'd recommend you use https://www.okteto.com/docs/cloud/preview-environments/preview-environments-github/ instead

If you still want to use the pipeline action, try using the create-namespace action instead of namespace: https://github.com/marketplace/actions/create-namespace

ledinhtuyenbkdn commented 2 years ago

Thank you so much, I'll try it.