Skip to content

Commit

Permalink
Fit to try building in Docker container instead
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Aug 4, 2024
1 parent 6809917 commit f3d6b11
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/webmin.dev-deploy-webmin-and-usermin-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,36 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
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 libdigest-sha-perl liblist-moreutils-perl libencode-detect-perl
packages: git tar gzip openssl curl openssh-client rpm perl libjson-pp-perl libdigest-sha-perl liblist-moreutils-perl libencode-detect-perl
version: 1.0
- uses: szenius/[email protected]
with:
timezoneLinux: "Europe/Nicosia"
- name: Fetch dependencies
run: |-
curl -O https://raw.githubusercontent.com/webmin/webmin/master/.github/build/vars.sh
curl -O https://raw.githubusercontent.com/webmin/webmin/master/.github/build/init.sh
curl -O https://raw.githubusercontent.com/webmin/webmin/master/.github/build/funcs.sh
curl -O https://raw.githubusercontent.com/webmin/webmin/master/.github/build/deb.sh
curl -O https://raw.githubusercontent.com/webmin/webmin/master/.github/build/rpm.sh
uses: docker/setup-buildx-action@v2
- name: Build and upload packages
run: |
docker run --rm \
-v ${{ github.workspace }}:/workspace \
-w /workspace \
debian:11 \
/bin/bash -c "apt-get update && \
apt-get install -y git tar gzip openssl curl openssh-client rpm perl libjson-pp-perl libdigest-sha-perl liblist-moreutils-perl libencode-detect-perl && \
curl -O https://raw.githubusercontent.com/webmin/webmin/master/.github/build/vars.sh && \
curl -O https://raw.githubusercontent.com/webmin/webmin/master/.github/build/init.sh && \
curl -O https://raw.githubusercontent.com/webmin/webmin/master/.github/build/funcs.sh && \
curl -O https://raw.githubusercontent.com/webmin/webmin/master/.github/build/deb.sh && \
curl -O https://raw.githubusercontent.com/webmin/webmin/master/.github/build/rpm.sh && \
bash deb.sh --devel && \
bash rpm.sh --devel"
env:
WEBMIN_DEV__SSH_PRV_KEY: ${{ secrets.WEBMIN_DEV__SSH_PRV_KEY }}
WEBMIN_DEV__SSH_PUB_KEY: ${{ secrets.WEBMIN_DEV__SSH_PUB_KEY }}
WEBMIN_DEV__GPG_PH: ${{ secrets.WEBMIN_DEV__GPG_PH }}
ENV_BUILD__CLOUD_UPLOAD_SSH_HOST: ${{ secrets.WEBMIN_DEV__IP_ADDR }}
run: |-
bash deb.sh --devel
bash rpm.sh --devel

0 comments on commit f3d6b11

Please sign in to comment.