mirror of
https://github.com/YuCat-OVO/BaiduNetdisk-Docker
synced 2025-05-10 20:10:04 +08:00
Test
This commit is contained in:
parent
d4d10d604f
commit
e00c6f84d0
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -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
|
||||
|
||||
@ -44,6 +44,7 @@ RUN \
|
||||
fi \
|
||||
done && \
|
||||
dpkg -i /tmp/baidunetdisk.deb && \
|
||||
chmod +x /usr/bin/mytest && \
|
||||
echo "**** cleanup ****" && \
|
||||
apt-get clean && \
|
||||
rm -rf \
|
||||
|
||||
@ -45,6 +45,7 @@ RUN \
|
||||
fi \
|
||||
done && \
|
||||
dpkg -i /tmp/baidunetdisk.deb && \
|
||||
chmod +x /usr/bin/mytest && \
|
||||
echo "**** cleanup ****" && \
|
||||
apt-get clean && \
|
||||
rm -rf \
|
||||
|
||||
31
docker.yml
31
docker.yml
@ -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
9
root/usr/bin/mytest
Normal 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'
|
||||
Loading…
Reference in New Issue
Block a user