test
All checks were successful
Build and Push Teamspeak Images on Base Image Update / check-for-changes (push) Successful in 13s
Build and Push Teamspeak Images on Base Image Update / build-alpine (push) Successful in 6s
Build and Push Teamspeak Images on Base Image Update / build-debian (push) Successful in 7s
Build and Push Teamspeak Images on Base Image Update / generate-changelogs (push) Successful in 9s
Build and Push Teamspeak Images on Base Image Update / generate-build-info (push) Successful in 8s
All checks were successful
Build and Push Teamspeak Images on Base Image Update / check-for-changes (push) Successful in 13s
Build and Push Teamspeak Images on Base Image Update / build-alpine (push) Successful in 6s
Build and Push Teamspeak Images on Base Image Update / build-debian (push) Successful in 7s
Build and Push Teamspeak Images on Base Image Update / generate-changelogs (push) Successful in 9s
Build and Push Teamspeak Images on Base Image Update / generate-build-info (push) Successful in 8s
This commit is contained in:
@@ -25,9 +25,14 @@ jobs:
|
||||
outputs:
|
||||
should_build_alpine: ${{ steps.check.outputs.should_build_alpine }}
|
||||
should_build_debian: ${{ steps.check.outputs.should_build_debian }}
|
||||
alpine_digest: ${{ steps.get_digest.outputs.alpine_digest }}
|
||||
debian_digest: ${{ steps.get_digest.outputs.debian_digest }}
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Pull latest base images
|
||||
run: |
|
||||
@@ -47,12 +52,12 @@ jobs:
|
||||
id: check
|
||||
run: |
|
||||
check_variant() {
|
||||
local variant=$1
|
||||
local new_digest=$2
|
||||
local infofile="$variant/build-info.json"
|
||||
local last_digest=""
|
||||
local base_changed=false
|
||||
local code_changed=false
|
||||
variant=$1
|
||||
new_digest=$2
|
||||
infofile="$variant/build-info.json"
|
||||
last_digest=""
|
||||
base_changed=false
|
||||
code_changed=false
|
||||
|
||||
if [ -f "$infofile" ]; then
|
||||
last_digest=$(jq -r '.base_digest // empty' "$infofile")
|
||||
@@ -66,11 +71,12 @@ jobs:
|
||||
code_changed=true
|
||||
fi
|
||||
|
||||
should_build=false
|
||||
if [ "$base_changed" = true ] || [ "$code_changed" = true ]; then
|
||||
echo "$variant_changed=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "$variant_changed=false" >> $GITHUB_OUTPUT
|
||||
should_build=true
|
||||
fi
|
||||
|
||||
echo "should_build_${variant}=$should_build" >> $GITHUB_OUTPUT
|
||||
}
|
||||
|
||||
git fetch origin main
|
||||
|
||||
Reference in New Issue
Block a user