There is an empty group/organization on our private Anaconda repo, that has a token with scope of 'all' added already. I am a member of the group. The desired path is to have the package be built and uploaded through gitlab ci. The package is properly built under /dist. I have the following line in our gitlab-ci.yml under deploy:
conda config --add channels our-group-name anaconda -t $OUR_GROUP_TOKEN upload --force dist/*.tar.gz Output:
usage: anaconda [-h] [--disable-ssl-warnings][--show-trackback] [-v] [-q] [-V] [-t TOKEN] [-s SITE] anaconda: error: argument : invalid choice: 'dist/ourtool.tar.gz' (choose from 'auth', 'label', 'channel', 'config', 'copy', 'download', 'groups', 'login', 'logout', 'move', 'notebook', 'package', 'remove', 'search', 'show', 'upload', 'whoami') ERROR: Job failed: exit code 1 The same output occurs when I run that command locally. But I can upload the package correctly if I run the following on my local machine:
anaconda --user our-group-name upload --force dist/*.tar.gz It is especially frustrating considering the first code is almost identical to other projects on other groups and they are able to deploy.
Is there something I'm missing? Do I need to do anything special with this group token, either on gitlab ci or on my local machine?
https://stackoverflow.com/questions/66757138/anaconda-private-token-package-upload-does-not-work-through-ci-or-local March 23, 2021 at 12:05PM
没有评论:
发表评论