Compare commits

...

2 Commits

Author SHA1 Message Date
3b544fc61f push change token name 2023-11-19 17:43:32 +01:00
8a26981a06 packages 2023-11-19 16:45:46 +01:00
2 changed files with 17 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
repository: ${{ gitea.repository }} repository: ${{ gitea.repository }}
token: ${{ secrets.ACCESS_TOKEN_GIT }} token: ${{ secrets.REPO_PULL_GITEA }}
- name: Login to docker private registry - name: Login to docker private registry
uses: docker/login-action@v3 uses: docker/login-action@v3

View File

@@ -1,5 +1,11 @@
name: build_package_deb name: build_package_deb
env:
PACKAGE_NAME: simplescript
DEB_OS_TARGET: bullseye
MAINTAINER: jingoh
ARCH: amd64
on: on:
push: push:
tags: tags:
@@ -13,7 +19,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
repository: ${{ gitea.repository }} repository: ${{ gitea.repository }}
token: ${{ secrets.ACCESS_TOKEN_GIT }} token: ${{ secrets.REPO_PULL_GITEA }}
- name: create sample script - name: create sample script
run: | run: |
@@ -29,10 +35,16 @@ jobs:
chmod +x .debpkg/DEBIAN/postinst chmod +x .debpkg/DEBIAN/postinst
- uses: jiro4989/build-deb-action@v3 - uses: jiro4989/build-deb-action@v3
with: with:
package: samplescript package: ${{ env.PACKAGE_NAME }}
package_root: .debpkg package_root: .debpkg
maintainer: jingoh maintainer: ${{ env.MAINTAINER }}
version: ${{ gitea.ref_name }} # refs/tags/v*.*.* version: ${{ gitea.ref_name }} # refs/tags/v*.*.*
arch: 'amd64' arch: 'amd64'
depends: 'libc6 (>= 2.2.1), git' depends: 'libc6 (>= 2.2.1), git'
desc: 'this is sample package.' desc: 'this is sample package.'
- 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