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 61290bd commit b7bb3ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ on:
branches: [main]
paths:
- "docker/*/Dockerfile"
env:
MATRIX: '{}'

jobs:
setup:
Expand All @@ -30,8 +28,7 @@ jobs:
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(" ")')
MATRIX={\"app\": $app_list_json}
echo "MATRIX=$MATRIX" >> $GITHUB_ENV
echo "::set-output name=matrix::{\"app\": $app_list_json}"
build:
needs: setup
Expand All @@ -40,7 +37,7 @@ jobs:
# You can set it to choice where download from
MEDIA_FROM: "source"
strategy:
matrix: ${{ fromJson(env.MATRIX) }}
matrix: ${{fromJson(needs.setup.outputs.matrix)}}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
version.json
CHANGELOG.md
tag_name: ${{ steps.convert_version.outputs.VERSION }}
name: Release-${{ steps.convert_version.outputs.VERSION }}
name: ${{ steps.convert_version.outputs.VERSION }}
body: ${{ steps.update_data.outputs.CHANGELOG }}
draft: false
prerelease: false
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: 202312110848, you can modify here to trigger Docker Build action
# modify time: 202312110927, you can modify here to trigger Docker Build action


FROM python:3.10-slim-bullseye
Expand Down

0 comments on commit b7bb3ef

Please sign in to comment.