Skip to content

Commit

Permalink
Update to inherit master reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Jan 2, 2025
1 parent 3f884a5 commit 0fc0c7f
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions .github/workflows/webmin.dev:usermin.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "webmin.dev: Usermin"
name: "webmin.dev: webmin/usermin"

on:
push:
Expand All @@ -7,29 +7,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '[build]')
steps:
- uses: actions/checkout@v3
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: git tar gzip openssl curl openssh-client rpm perl libjson-pp-perl libdigest-sha-perl liblist-moreutils-perl libencode-detect-perl zstd
version: 1.0
- uses: szenius/[email protected]
with:
timezoneLinux: "Europe/Nicosia"
- name: Fetch dependencies
run: |-
curl -O https://raw.githubusercontent.com/webmin/webmin-ci-cd/main/build/bootstrap.bash
- name: Build and upload packages
env:
CLOUD__GPG_PH: ${{ secrets.DEV_GPG_PH }}
CLOUD__IP_ADDR: ${{ secrets.DEV_IP_ADDR }}
CLOUD__UPLOAD_SSH_USER: ${{ secrets.DEV_UPLOAD_SSH_USER }}
CLOUD__UPLOAD_SSH_DIR: ${{ secrets.DEV_UPLOAD_SSH_DIR }}
CLOUD__SSH_PRV_KEY: ${{ secrets.DEV_SSH_PRV_KEY }}
CLOUD__GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |-
bash bootstrap.bash
bash build-deb-package.bash usermin --testing
bash build-rpm-package.bash usermin --testing
uses: webmin/webmin-ci-cd/.github/workflows/testing-master-workflow.yml@main
with:
build-type: package
project-name: usermin

0 comments on commit 0fc0c7f

Please sign in to comment.