Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7684db83
Commit
7684db83
authored
Jul 29, 2021
by
Asmaa Hassan
Committed by
Nick Gaskill
Jul 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an example for publishing a package using a Windows runner
parent
0325de0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
doc/user/packages/generic_packages/index.md
doc/user/packages/generic_packages/index.md
+12
-0
No files found.
doc/user/packages/generic_packages/index.md
View file @
7684db83
...
@@ -131,6 +131,18 @@ download:
...
@@ -131,6 +131,18 @@ download:
-
'
wget
--header="JOB-TOKEN:
$CI_JOB_TOKEN"
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/my_package/0.0.1/file.txt'
-
'
wget
--header="JOB-TOKEN:
$CI_JOB_TOKEN"
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/my_package/0.0.1/file.txt'
```
```
When using a Windows runner with PowerShell, you must use
`Invoke-WebRequest`
or
`Invoke-RestMethod`
instead of
`curl`
in the
`upload`
and
`download`
stages.
For example:
```
yaml
upload
:
stage
:
upload
script
:
-
Invoke-RestMethod -Headers @{ "JOB-TOKEN"="$CI_JOB_TOKEN" } -InFile path/to/file.txt -uri "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/my_package/0.0.1/file.txt" -Method put
```
### Enable or disable generic packages in the Package Registry
### Enable or disable generic packages in the Package Registry
Support for generic packages is under development but ready for production use.
Support for generic packages is under development but ready for production use.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment