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 7, 2023
1 parent 1d350f5 commit 4f39333
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ jobs:
run: |
IFS=',' read -ra APP_LISTS <<< "$APP_LISTS"
for APP in "${APP_LISTS[@]}"; do
TAG=$(grep 'LABEL version' "apps/$APP/Dockerfile" | cut -d'"' -f2)
TAG=$(grep 'LABEL version' "apps/$APP/Dockerfile" | cut -d'"' -f2 | xargs)
echo $TAG
TAGS=$(echo $TAG | awk -F. '{for(i=1;i<=NF;i++){printf (i==1?"":",")"%s",substr($0,1,index($0,$i"."$((i+1)))-1)}}' | sed 's/,$//')
IFS='.' read -ra PARTS <<< "$TAG"; TAGS=""; for i in "${!PARTS[@]}"; do if [ "$i" -eq 0 ]; then TAGS+="${PARTS[$i]}"; else TAGS+=",${TAGS}.${PARTS[$i]}"; fi; done; echo $TAGS
echo $TAGS
echo "Building and pushing Docker image for $APP with tags: $TAGS"
echo "TAGS=$TAGS" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion apps/discuz/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# update time: 202312070817
# update time: 202312070824

FROM joomla:php7.4-apache

Expand Down

0 comments on commit 4f39333

Please sign in to comment.