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

Add support for skip-if-exists flag and pipeline variables to the action #8

Closed ifbyol closed 3 years ago

ifbyol commented 3 years ago

This action configuration:

    - name: Deploy Application
      uses: okteto/pipeline@ifbyol/support-variables-param
      with:
        namespace: ci-ifbyol
        skipIfExists: true
        variables: "DB_HOST=mysql,CONFIG_PATH=/tmp/config.yaml"

Generated this command

okteto pipeline deploy --name  --branch=ifbyol/test-pipeline-action --repository=https://github.com/ifbyol/movies --namespace=ci-ifbyol --skip-if-exists --var DB_HOST=mysql --var CONFIG_PATH=/tmp/config.yaml --wait

I'll leave the PR in draft until changes on the API and CLI are merged

ifbyol commented 3 years ago

Here you have some tests I did with the github action in a test repository: https://github.com/ifbyol/movies/actions