Skip to content

Commit

Permalink
test docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
chendelin1982 authored Dec 11, 2023
1 parent b7bb3ef commit 3be6a99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ jobs:
run: |
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_json=$(echo $app_list | jq -R -s -c 'split(" ")')
echo "::set-output name=matrix::{\"app\": $app_list_json}"
app_list=$(echo "$changed_files" | grep -E 'apps/.*/(Dockerfile|cmd.sh|entrypoint.sh)' | awk -F'/' '{print $2}' | sort | uniq)
if [ -z "$app_list" ]; then
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:
needs: setup
Expand Down
2 changes: 1 addition & 1 deletion docker/apphub/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 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
Expand Down

0 comments on commit 3be6a99

Please sign in to comment.