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
61290bd254
commit
b7bb3ef9ad
7
.github/workflows/docker.yml
vendored
7
.github/workflows/docker.yml
vendored
@ -12,8 +12,6 @@ on:
|
|||||||
branches: [main]
|
branches: [main]
|
||||||
paths:
|
paths:
|
||||||
- "docker/*/Dockerfile"
|
- "docker/*/Dockerfile"
|
||||||
env:
|
|
||||||
MATRIX: '{}'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
setup:
|
||||||
@ -30,8 +28,7 @@ jobs:
|
|||||||
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 'docker/.*/(Dockerfile)' | awk -F'/' '{print $2}' | sort | uniq)
|
||||||
app_list_json=$(echo $app_list | jq -R -s -c 'split(" ")')
|
app_list_json=$(echo $app_list | jq -R -s -c 'split(" ")')
|
||||||
MATRIX={\"app\": $app_list_json}
|
echo "::set-output name=matrix::{\"app\": $app_list_json}"
|
||||||
echo "MATRIX=$MATRIX" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: setup
|
needs: setup
|
||||||
@ -40,7 +37,7 @@ jobs:
|
|||||||
# You can set it to choice where download from
|
# You can set it to choice where download from
|
||||||
MEDIA_FROM: "source"
|
MEDIA_FROM: "source"
|
||||||
strategy:
|
strategy:
|
||||||
matrix: ${{ fromJson(env.MATRIX) }}
|
matrix: ${{fromJson(needs.setup.outputs.matrix)}}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -77,7 +77,7 @@ jobs:
|
|||||||
version.json
|
version.json
|
||||||
CHANGELOG.md
|
CHANGELOG.md
|
||||||
tag_name: ${{ steps.convert_version.outputs.VERSION }}
|
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 }}
|
body: ${{ steps.update_data.outputs.CHANGELOG }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# This file can running at actions
|
# 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
|
FROM python:3.10-slim-bullseye
|
||||||
|
Loading…
Reference in New Issue
Block a user