mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
Contrib: upload2artifactory.py (#11886)
* Contrib: upload2artifactory.py Signed-off-by: Bas Meijer <bas.meijer@enexis.nl> * Pythonic Signed-off-by: Bas Meijer <bas.meijer@enexis.nl> * Suggested Co-authored-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr> * upload2artifactory.py documentation. --------- Signed-off-by: Bas Meijer <bas.meijer@enexis.nl> Co-authored-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>
This commit is contained in:
@@ -67,3 +67,23 @@ Step(2) download files and run nginx container
|
||||
```
|
||||
|
||||
when nginx container is running, it can be accessed through <http://127.0.0.1:8080/>.
|
||||
|
||||
## upload2artifactory.py
|
||||
|
||||
After the steps above, this script can recursively upload each file under a directory to a generic repository in Artifactory.
|
||||
|
||||
Environment Variables:
|
||||
|
||||
- USERNAME -- At least permissions'Deploy/Cache' and 'Delete/Overwrite'.
|
||||
- TOKEN -- Generate this with 'Set Me Up' in your user.
|
||||
- BASE_URL -- The URL including the repository name.
|
||||
|
||||
Step(3) (optional) upload files to Artifactory
|
||||
|
||||
```shell
|
||||
cd kubespray/contrib/offline/offline-files
|
||||
export USERNAME=admin
|
||||
export TOKEN=...
|
||||
export BASE_URL=https://artifactory.example.com/artifactory/a-generic-repo/
|
||||
./upload2artifactory.py
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user