use custom docker image
This commit is contained in:
@@ -9,24 +9,12 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: archlinux
|
image: git.azur.webhop.me/azur/arch-builder:latest
|
||||||
options: --privileged
|
options: --privileged
|
||||||
permissions:
|
permissions:
|
||||||
packages: write
|
packages: write
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Cache Pacman Data
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
/var/cache/pacman/pkg
|
|
||||||
/var/lib/pacman/sync
|
|
||||||
key: pacman-cache-${{ github.run_id }}
|
|
||||||
restore-keys: |
|
|
||||||
pacman-cache-
|
|
||||||
- name: Update packages
|
|
||||||
run: |
|
|
||||||
pacman -Syu --noconfirm --noprogressbar --needed base-devel devtools btrfs-progs dbus sudo nodejs pacman-contrib
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -62,8 +50,6 @@ jobs:
|
|||||||
if: steps.compare.outputs.build == 'true'
|
if: steps.compare.outputs.build == 'true'
|
||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE
|
cd $GITHUB_WORKSPACE
|
||||||
useradd -m builder
|
|
||||||
echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
|
||||||
chown -R builder:builder .
|
chown -R builder:builder .
|
||||||
sudo -u builder updpkgsums
|
sudo -u builder updpkgsums
|
||||||
sudo -u builder makepkg -s --noconfirm
|
sudo -u builder makepkg -s --noconfirm
|
||||||
|
|||||||
Reference in New Issue
Block a user