mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-02 17:08:38 +08:00
test docker build
This commit is contained in:
parent
b7bb3ef9ad
commit
3be6a99138
10
.github/workflows/docker.yml
vendored
10
.github/workflows/docker.yml
vendored
@ -26,9 +26,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git diff --name-only HEAD^ HEAD
|
git diff --name-only HEAD^ HEAD
|
||||||
changed_files=$(git diff --name-only HEAD^ HEAD)
|
changed_files=$(git diff --name-only HEAD^ HEAD)
|
||||||
app_list=$(echo "$changed_files" | grep -E 'docker/.*/(Dockerfile)' | awk -F'/' '{print $2}' | sort | uniq)
|
app_list=$(echo "$changed_files" | grep -E 'apps/.*/(Dockerfile|cmd.sh|entrypoint.sh)' | awk -F'/' '{print $2}' | sort | uniq)
|
||||||
app_list_json=$(echo $app_list | jq -R -s -c 'split(" ")')
|
if [ -z "$app_list" ]; then
|
||||||
echo "::set-output name=matrix::{\"app\": $app_list_json}"
|
app_list_json='[]'
|
||||||
|
else
|
||||||
|
app_list_json=$(echo $app_list | jq -R -s -c 'split(" ")')
|
||||||
|
fi
|
||||||
|
echo "::set-output name=matrix::{\"app\": $app_list_json}"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: setup
|
needs: setup
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# This file can running at actions
|
# This file can running at actions
|
||||||
# modify time: 202312110927, you can modify here to trigger Docker Build action
|
# modify time: 202312110949, you can modify here to trigger Docker Build action
|
||||||
|
|
||||||
|
|
||||||
FROM python:3.10-slim-bullseye
|
FROM python:3.10-slim-bullseye
|
||||||
|
Loading…
Reference in New Issue
Block a user