ci: add user and token
This commit is contained in:
@@ -20,3 +20,6 @@ jobs:
|
|||||||
run: rpmbuild -ba "$(make name).spec"
|
run: rpmbuild -ba "$(make name).spec"
|
||||||
- name: Upload rpm package
|
- name: Upload rpm package
|
||||||
run: make upload
|
run: make upload
|
||||||
|
env:
|
||||||
|
PACKAGES_USERNAME: ${{ vars.PACKAGES_USERNAME }}
|
||||||
|
PACKAGES_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -48,4 +48,4 @@ tarball: $(RPM_TARBALL_PATH)
|
|||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
upload:
|
upload:
|
||||||
curl --fail-with-body --upload-file "$(RPM_BUILD_PATH)" https://git.netoik.io/api/packages/samuel/rpm/upload
|
curl --fail-with-body --upload-file "$(RPM_BUILD_PATH)" --user "$(PACKAGES_USERNAME):$(PACKAGES_TOKEN)" https://git.netoik.io/api/packages/samuel/rpm/upload
|
||||||
|
|||||||
Reference in New Issue
Block a user