docker-build.sh 488 B

123456789101112131415161718
  1. #!/bin/bash
  2. # Builds the RPM inside the Docker container
  3. set -o errexit
  4. set -o xtrace
  5. # Move to source directory
  6. pushd ${SOURCE_DIR}
  7. # Build RPM
  8. make -f .copr/Makefile srpm outdir=/root/rpmbuild/SRPMS
  9. rpmbuild --rebuild -bb /root/rpmbuild/SRPMS/jellyfin-*.src.rpm
  10. # Move the artifacts out
  11. mkdir -p ${ARTIFACT_DIR}/rpm
  12. mv /root/rpmbuild/RPMS/x86_64/jellyfin-*.rpm /root/rpmbuild/SRPMS/jellyfin-*.src.rpm ${ARTIFACT_DIR}/rpm/
  13. chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}