mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-04-19 19:28:22 +00:00
13 lines
325 B
Bash
Executable File
13 lines
325 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# cleanup
|
|
rm -rf /app/tmp
|
|
rm -rf /tmp/aptly*
|
|
|
|
usermod -u `stat -c %u /app` aptly >/dev/null
|
|
chown -R `stat -c %u /app` /var/lib/aptly
|
|
|
|
# use same /home/runner dir as in github workflow
|
|
chown -R `stat -c %u /app` /home/runner
|
|
su - aptly -c "cd /app; export HOME=/home/runner; go mod tidy; make docker-test TEST=$@"
|