push change token name
This commit is contained in:
@@ -31,7 +31,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: ${{ gitea.repository }}
|
||||
token: ${{ secrets.ACCESS_TOKEN_GIT }}
|
||||
token: ${{ secrets.REPO_PULL_GITEA }}
|
||||
|
||||
- name: Login to docker private registry
|
||||
uses: docker/login-action@v3
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
name: build_package_deb
|
||||
|
||||
env:
|
||||
GITEA_USER: staffadmin
|
||||
PACKAGE_NAME: simplescript
|
||||
DEB_OS_TARGET: bullseye
|
||||
MAINTAINER: jingoh
|
||||
ARCH: amd64
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -17,7 +19,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: ${{ gitea.repository }}
|
||||
token: ${{ secrets.ACCESS_TOKEN_GIT }}
|
||||
token: ${{ secrets.REPO_PULL_GITEA }}
|
||||
|
||||
- name: create sample script
|
||||
run: |
|
||||
@@ -33,20 +35,16 @@ jobs:
|
||||
chmod +x .debpkg/DEBIAN/postinst
|
||||
- uses: jiro4989/build-deb-action@v3
|
||||
with:
|
||||
package: samplescript
|
||||
package: ${{ env.PACKAGE_NAME }}
|
||||
package_root: .debpkg
|
||||
maintainer: jingoh
|
||||
maintainer: ${{ env.MAINTAINER }}
|
||||
version: ${{ gitea.ref_name }} # refs/tags/v*.*.*
|
||||
arch: 'amd64'
|
||||
depends: 'libc6 (>= 2.2.1), git'
|
||||
desc: 'this is sample package.'
|
||||
|
||||
- name: Show Information
|
||||
run: sleep 300
|
||||
|
||||
|
||||
# - name: Show Information
|
||||
# run: |
|
||||
# curl --user staffadmin: \
|
||||
# --upload-file path/to/file.deb \
|
||||
# https://gitea.jingoh.fr/api/packages/${{ env.GITEA_USER }}/debian/pool/${{ env.DEB_OS_TARGET }}/main/upload
|
||||
- name: Push packages
|
||||
run: |
|
||||
curl --user ${{ vars.REPO_GITEA_USER }}:${{ env.PACKAGE_PUSH_REPO }} \
|
||||
--upload-file ${{ env.PACKAGE_NAME }}_${{ gitea.ref_name }}_${{ env.ARCH }}.deb \
|
||||
https://${{ gitea.repository }}/api/packages/${{ vars.REPO_GITEA_USER }}/debian/pool/${{ env.DEB_OS_TARGET }}/main/upload
|
||||
|
||||
Reference in New Issue
Block a user