builder.yml fixes
This commit is contained in:
parent
1c17df91ba
commit
c71cadd589
@ -3,7 +3,7 @@ name: ci
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- "main"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -23,7 +23,6 @@ jobs:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
|
||||
- uses: mr-smithers-excellent/docker-build-push@v6
|
||||
name: Build futureporn/bright
|
||||
with:
|
||||
@ -32,4 +31,5 @@ jobs:
|
||||
registry: gitea.futureporn.net
|
||||
dockerfile: dockerfiles/bright.dockerfile
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
buildArgs: MIX_ENV=prod
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
[](https://www.jetify.com/devbox/docs/contributor-quickstart/)
|
||||
|
||||
Source Code for https://futureporn.net
|
||||
|
@ -100,12 +100,13 @@ defmodule Bright.Tracker do
|
||||
end
|
||||
|
||||
def whitelist_info_hash(info_hash) do
|
||||
Logger.debug("Attempting to whitelist info_hash=#{info_hash}")
|
||||
|
||||
whitelist_url = whitelist_url()
|
||||
username = whitelist_username()
|
||||
password = whitelist_password()
|
||||
Logger.debug("whitelist_username=#{username} whitelist_password=#{password}")
|
||||
|
||||
Logger.debug(
|
||||
"Attempting to whitelist info_hash=#{info_hash}, whitelist_url=#{whitelist_url}, whitelist_username=#{username}, whitelist_password=#{password}"
|
||||
)
|
||||
|
||||
send_whitelist_request(whitelist_url, info_hash, username, password)
|
||||
# case URI.parse(whitelist_url) do
|
||||
|
@ -40,6 +40,7 @@ ARG MIX_ENV=test
|
||||
|
||||
# Set it as an environment variable
|
||||
ENV MIX_ENV=${MIX_ENV}
|
||||
RUN echo "Hello world! MIX_ENV=${MIX_ENV}"
|
||||
|
||||
|
||||
# install mix dependencies
|
||||
@ -92,6 +93,7 @@ CMD [ "mix", "phx.server" ]
|
||||
# start a new build stage so that the final image will only contain
|
||||
# the compiled release and other runtime necessities
|
||||
FROM ${RUNNER_IMAGE} AS prod
|
||||
RUN mkdir -p ~/.config/futureporn
|
||||
|
||||
RUN apt-get update -y && \
|
||||
apt-get install -y libstdc++6 openssl libncurses5 locales ca-certificates \
|
||||
@ -106,7 +108,7 @@ WORKDIR "/app"
|
||||
RUN chown nobody /app
|
||||
|
||||
# set runner ENV
|
||||
ARG MIX_ENV
|
||||
ARG MIX_ENV=prod
|
||||
ENV MIX_ENV=$MIX_ENV
|
||||
RUN echo MIX_ENV=$MIX_ENV
|
||||
|
||||
@ -120,5 +122,4 @@ USER nobody
|
||||
# above and adding an entrypoint. See https://github.com/krallin/tini for details
|
||||
# ENTRYPOINT ["/tini", "--"]
|
||||
|
||||
RUN mkdir -p ~/.config/futureporn
|
||||
CMD ["/app/bin/server"]
|
||||
|
@ -12,9 +12,11 @@ echo(" [Press Enter When Complete...]")
|
||||
_ = stdin()
|
||||
|
||||
|
||||
echo(" * Generate a thumbnail -- ffmpeg -i ./projektmelody-chaturbate-2025-02-08.mp4 -vf 'select=not(mod(n\,45801)),scale=160:-1,tile=5x5' -vsync 0 ./projektmelody-chaturbate-2025-02-08-thumb.mp4")
|
||||
echo(" * Generate a thumbnail -- bash <(curl -fsSL https://gitea.futureporn.net/futureporn/fp/raw/branch/main/packages/scripts/thumbnail-generator.sh) ./projektmelody-chaturbate-2025-02-12.mp4")
|
||||
echo(" * Upload the .mp4 to Mux ")
|
||||
echo(" * Upload the .mp4 to Backblaze ")
|
||||
echo(" * Add the .mp4 to IPFS -- sudo -u ipfs ipfs add --cid-version=1 ./projektmelody-chaturbate-2025-02-12.mp4")
|
||||
echo(" * Remote pin the IPFS CID")
|
||||
echo(" [Press Enter When Complete...]")
|
||||
_ = stdin()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user