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

unknown flag: --application #16

Closed
PierrickP opened this issue Apr 19, 2022 · 3 comments
Closed

unknown flag: --application #16

PierrickP opened this issue Apr 19, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@PierrickP
Copy link

Describe the bug

Hello, we have an error since a couple of days when we use on github action.
I noticed some changes recently. I moved from omegion/argocd-app-actions@master to omegion/argocd-actions@v1 but still not works.

Which version can we use ?

name: Deploy Staging

on:
  push:
    branches:
      - develop

jobs:
  build_push_docker:
    runs-on: ubuntu-latest

    steps:
      - name: Re-Deploy my app
        uses: omegion/argocd-actions@v1
        with:
          address: 'my.argocd.com'
          token: ${{ secrets.ARGOCD_STAGING_AUTH }}
          appName: 'my-app'

To Reproduce
Steps to reproduce the behavior:

  1. Run
    The github action step run the following command (logged on Github action)
    --application=my_application \
    --token=my_token \
    --address=my_argocd_address \
    --logLevel=debug
  1. See error
Unable to find image 'ghcr.io/omegion/argocd-actions:v1' locally
v1: Pulling from omegion/argocd-actions
8663204ce13b: Pull complete 
45c2c68bc0f7: Pull complete 
Digest: sha256:d1655a36cd13bcbc696e663c15753e4edefe1c45af0f18269ebba639999908be
Status: Downloaded newer image for ghcr.io/omegion/argocd-actions:v1
Error: unknown flag: --application
@PierrickP PierrickP added the bug Something isn't working label Apr 19, 2022
@koenmtb1
Copy link

+1

@koenmtb1
Copy link

@PierrickP this is fixed by adding action: sync to the parameters in the action.

I submitted a PR to have this fixed in the doc

@omegion
Copy link
Owner

omegion commented May 27, 2022

Thnx @koenmtb1 for your answer. It seems I forgot to update the document. This is fixed with #19. Please read the updated document.

@omegion omegion closed this as completed May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants