Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action is failing on deploy: unknown flag: --cache-artifacts #11

Open
donnyv12 opened this issue Oct 5, 2021 · 2 comments
Open

Action is failing on deploy: unknown flag: --cache-artifacts #11

donnyv12 opened this issue Oct 5, 2021 · 2 comments

Comments

@donnyv12
Copy link

donnyv12 commented Oct 5, 2021

Hi all, I'm using the action below and having two problems:

  1. the action is not respecting the -v debug flag
  2. The action is failing. The reason being logged is unknown flag: --cache-artifacts but I am not setting this flag in the action, and setting cache: false makes no difference.
    I am running the same skaffold version locally and can run the deploy command with arguments successfully.
Run hiberbee/[email protected]
  with:
    command: deploy -v debug
    repository: gcr.io/PROJECT
    tag: 8e47aa2272f6284241bd2fe36ad705487c0fb9d2
    skaffold-version: 1.32.0
    container-structure-test-version: 1.10.0
    cache: true
    filename: skaffold.yaml
    skip-tests: true
  env:
    PROJECT_ID: PROJECT
    GKE_CLUSTER: CLUSTER
    GKE_ZONE: us-west2
    CLOUDSDK_METRICS_ENVIRONMENT: github-actions-setup-gcloud
    GCLOUD_PROJECT: PROJECT
    GOOGLE_APPLICATION_CREDENTIALS: REDACTED
    KUBECONFIG: REDACTED
/usr/bin/chmod +x /home/runner/actions-runner/_work/github-reporter/github-reporter/bin/skaffold
/home/runner/actions-runner/_work/github-reporter/github-reporter/bin/skaffold deploy -v debug --cache-artifacts=true --default-repo=gcr.io/PROJECT --tag=8e47aa2272f6284241bd2fe36ad705487c0fb9d2 --filename=skaffold.yaml --skip-tests=true
unknown flag: --cache-artifacts
See 'skaffold deploy --help' for usage.
Error: The process '/home/runner/actions-runner/_work/github-reporter/github-reporter/bin/skaffold' failed with exit code 127
@donnyv12
Copy link
Author

donnyv12 commented Oct 5, 2021

For further context, I'm running on a self hosted runner running Ubuntu 20.04

@donnyv12 donnyv12 changed the title Action is failing on deploy Action is failing on deploy: unknown flag: --cache-artifacts Oct 5, 2021
@themailman05
Copy link

@donnyv12 I ran into this myself, there's a workaround to not specify a cache for deploy-only command - use

with:
  cache-artifacts=''

in your action call - this will tell the action to drop the CLI argument, as it tries to pass the argument to deploy by default, which doesn't take an argument. I'm working on a fix in my fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants