Skip to content

Commit

Permalink
ci: build full image with webui enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
silv3rr committed Aug 22, 2024
1 parent 36b2b67 commit 6e8dd1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ jobs:
- name: Push images
run: |
docker tag docker-glftpd:latest ghcr.io/silv3rr/docker-glftpd:latest
#docker tag docker-glftpd-web:latest ghcr.io/silv3rr/docker-glftpd-web:latest
docker push ghcr.io/silv3rr/docker-glftpd:latest
#docker push ghcr.io/silv3rr/docker-glftpd-web:latest
- name: Build full glftpd image
run: INSTALL_WEBUI=0 INSTALL_ZS=1 INSTALL_BOT=1 ./docker-build.sh
run: INSTALL_WEBUI=1 INSTALL_ZS=1 INSTALL_BOT=1 ./docker-build.sh
- name: Push full image
run: |
docker tag docker-glftpd:latest ghcr.io/silv3rr/docker-glftpd:full
Expand Down
2 changes: 1 addition & 1 deletion bin/labels.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -x

CONTAINER="${1:-docker-glftpd}"
docker image inspect --format='{{ index .Config.Labels "gl.sitebot.setup" }}' "$CONTAINER"
Expand Down
4 changes: 3 additions & 1 deletion docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ if [ "${DEBUG:-0}" -eq 0 ]; then
WEBUI_ARGS+=" --detach "
fi

#WEBUI_ARGS+=" --add-host glftpd:127.0.0.1 "

if [ -z "$NETWORK" ]; then
DOCKER_NETWORK="$(docker network ls --format '{{.Name}}' --filter 'Name=shit')"
if [ -n "$DOCKER_NETWORK" ] && [ "$DOCKER_NETWORK" = "shit" ]; then
if [ -n "$DOCKER_NETWORK" ] && [ "$DOCKER_NETWORK" = "shit" ]; then
NETWORK="shit"
fi
fi
Expand Down

0 comments on commit 6e8dd1d

Please sign in to comment.