2021-10-31 01:55:25 +02:00
|
|
|
#!/bin/sh
|
2023-07-11 19:20:08 +02:00
|
|
|
set -e
|
2021-10-31 01:55:25 +02:00
|
|
|
|
2023-07-11 19:20:08 +02:00
|
|
|
if [ "$1" = "--release" ] || [ "$1" = "-r" ]; then
|
|
|
|
with_input="--with-input=mobilizon-reshare.git=mobilizon-reshare"
|
|
|
|
fi
|
2021-11-12 02:40:50 +01:00
|
|
|
|
2023-07-11 19:20:08 +02:00
|
|
|
guix time-machine -C channels-lock.scm -- build -L . ${with_input} mobilizon-reshare-scheduler
|
|
|
|
|
|
|
|
guix time-machine -C channels-lock.scm -- pack -L . ${with_input} -f docker -S /opt/bin=bin --save-provenance --root=docker-image.tar.gz --entry-point=bin/scheduler.py mobilizon-reshare-scheduler python
|