Skip to content

Commit

Permalink
fix download-data.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
storytellerF committed Jan 30, 2025
1 parent dafa44e commit eead88c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
cache: gradle

- name: Build mini app
run: ./scripts/build_scripts/build-app-on-ci.sh mini www.acommunity.link/
run: ./scripts/build_scripts/build-app-on-ci.sh mini www.acommunity.link

- name: Build koyeb app
run: ./scripts/build_scripts/build-app-on-ci.sh koyeb respectable-jobie-anabn-3d54150c.koyeb.app/server/
run: ./scripts/build_scripts/build-app-on-ci.sh koyeb respectable-jobie-anabn-3d54150c.koyeb.app/server

- uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ COPY . .
RUN find scripts/ -type f \( -name "*.sh" -o -name "*.js" \) -exec sed -i 's/\r$//' {} + && \
sed -i 's/\r$//' gradlew

RUN ./scripts/download_scripts/download_data.sh
RUN ./scripts/download_scripts/download-data.sh

ENV HOST_TYPE=docker

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.patched
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ RUN mkdir -p build/envs && cp ./${FLAVOR}.env ./build/envs/.env
RUN find scripts/ -type f \( -name "*.sh" -o -name "*.js" \) -exec sed -i 's/\r$//' {} + && \
sed -i 's/\r$//' gradlew

RUN ./scripts/download_scripts/download_data.sh
RUN ./scripts/download_scripts/download-data.sh

ENV HOST_TYPE=docker

Expand Down
4 changes: 4 additions & 0 deletions deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ services:

bunkerweb:
image: bunkerity/bunkerweb:${BUNKER_VERSION}
depends_on:
- bw-db
ports:
- ${BUNKER_PORT}:8080
- ${BUNKER_PORT_SECRET}:8443
Expand Down Expand Up @@ -96,6 +98,7 @@ services:
depends_on:
- bunkerweb
- bw-docker
- bw-db
environment:
- DATABASE_URI=${BUNKER_DB_URI}
- DOCKER_HOST=tcp://bw-docker:2375
Expand All @@ -120,6 +123,7 @@ services:
image: bunkerity/bunkerweb-ui:1.5.12
depends_on:
- bw-docker
- bw-db
environment:
- DATABASE_URI=${BUNKER_DB_URI}
- DOCKER_HOST=tcp://bw-docker:2375
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
set -e
# 检查参数个数
if [ "$#" -eq 2 ]; then
echo "try use env"
echo "try use args"
export PRESET_ENCRYPTED_URI=$1
export PRESET_ENCRYPTED_PRESET_ENCRYPTED_PASSWORD=$2
export PRESET_ENCRYPTED_PASSWORD=$2
fi

if [ -z "$PRESET_ENCRYPTED_URI" ] || [ -z "$PRESET_ENCRYPTED_PRESET_ENCRYPTED_PASSWORD" ]; then
if [ -z "$PRESET_ENCRYPTED_URI" ] || [ -z "$PRESET_ENCRYPTED_PASSWORD" ]; then
echo "skip download preset data"
exit 0
fi
Expand Down

0 comments on commit eead88c

Please sign in to comment.