docker-build.sh 447 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. # Builds the DEB inside the Docker container
  3. set -o errexit
  4. set -o xtrace
  5. # Move to source directory
  6. pushd ${SOURCE_DIR}
  7. # Remove build-dep for dotnet-sdk-2.2, since it's not a package in this image
  8. sed -i '/dotnet-sdk-2.2,/d' debian/control
  9. # Build DEB
  10. dpkg-buildpackage -us -uc
  11. # Move the artifacts out
  12. mkdir -p ${ARTIFACT_DIR}/deb
  13. mv /jellyfin_* ${ARTIFACT_DIR}/deb/
  14. chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}