This commit is contained in:
YuCat 2024-05-05 20:30:05 +08:00
parent d4d10d604f
commit e00c6f84d0
5 changed files with 13 additions and 33 deletions

View File

@ -49,8 +49,8 @@ jobs:
push: true
targets: ${{ steps.set-vars.outputs.TARGET }}
env:
TAG: ${{ env.BUILD_TAG }}
TAG: ${{ env.BUILD_TAG }}-${{ steps.set-vars.outputs.TARGET }}
- name: Test
run: |
docker run -t --rm ${{ env.BUILD_TAG }}
docker run -t --rm "${{ env.BUILD_TAG }}-${{ steps.set-vars.outputs.TARGET }}" /usr/bin/mytest

View File

@ -44,6 +44,7 @@ RUN \
fi \
done && \
dpkg -i /tmp/baidunetdisk.deb && \
chmod +x /usr/bin/mytest && \
echo "**** cleanup ****" && \
apt-get clean && \
rm -rf \

View File

@ -45,6 +45,7 @@ RUN \
fi \
done && \
dpkg -i /tmp/baidunetdisk.deb && \
chmod +x /usr/bin/mytest && \
echo "**** cleanup ****" && \
apt-get clean && \
rm -rf \

View File

@ -1,31 +0,0 @@
input:
job:
package-manager: docker
allowed-updates:
- update-type: all
source:
provider: github
repo: YuCat-OVO/BaiduNetdisk-Docker
directory: /
branch: develop
commit: 16164b19aa9c08da55b0bd26fb4b2228262d0eab
output:
- type: update_dependency_list
expect:
data:
dependencies:
- name: linuxserver/baseimage-kasmvnc
requirements:
- file: Dockerfile
groups: []
requirement: null
source:
registry: ghcr.io
tag: debianbookworm
version: debianbookworm
dependency_files:
- /Dockerfile
- type: mark_as_processed
expect:
data:
base-commit-sha: 16164b19aa9c08da55b0bd26fb4b2228262d0eab

9
root/usr/bin/mytest Normal file
View File

@ -0,0 +1,9 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
sudo -u root -s /bin/bash -c "/opt/baidunetdisk/baidunetdisk --no-sandbox" > /tmp/baidunetdisk_output.txt 2>&1 &
sleep 15
echo -e '\033[0;31m'
cat /tmp/baidunetdisk_output.txt
echo -e '\033[0m'