Skip to content

Commit

Permalink
Merge pull request #19 from nextcloud-releases/enh/noid/nextcloud-php…
Browse files Browse the repository at this point in the history
…-tag

add a php tag to the nextcloud container
  • Loading branch information
szaimen authored May 23, 2022
2 parents 2d889d3 + ae1b571 commit 484b876
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/promote-single-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,17 @@ jobs:
docker pull nextcloud/$AIO_NAME\:"$SOURCE_TAG"
docker tag nextcloud/$AIO_NAME\:"$SOURCE_TAG" nextcloud/$AIO_NAME\:"$TARGET_TAG"
if [ "$AIO_NAME" != "all-in-one" ] && [ "$TARGET_TAG" = latest ]; then
docker tag nextcloud/$AIO_NAME\:"$SOURCE_TAG" nextcloud/$AIO_NAME\:"$DATE"-"$TARGET_TAG"
docker push nextcloud/$AIO_NAME\:"$DATE"-"$TARGET_TAG"
docker tag nextcloud/$AIO_NAME\:beta nextcloud/$AIO_NAME\:"$DATE"-latest
docker push nextcloud/$AIO_NAME\:"$DATE"-latest
fi
if [ "$AIO_NAME" = "aio-nextcloud" ] && [ "$TARGET_TAG" = latest ]; then
set -x
PHP_VERSION="$(docker inspect nextcloud/aio-nextcloud:beta | grep PHP_VERSION | grep -oP '[0-8.]+' | sed 's|\.[0-9]\+$||')"
if [ -n "$PHP_VERSION" ]; then
docker tag nextcloud/aio-nextcloud\:beta nextcloud/aio-nextcloud\:php"$PHP_VERSION"-latest
docker push nextcloud/aio-nextcloud\:php"$PHP_VERSION"-latest
fi
set +x
fi
docker push nextcloud/$AIO_NAME\:"$TARGET_TAG"
if [ "$AIO_NAME" != "aio-clamav" ] && [ "$AIO_NAME" != "aio-onlyoffice" ]; then
Expand All @@ -49,7 +58,16 @@ jobs:
docker tag nextcloud/$AIO_NAME\:"$SOURCE_TAG"-arm64 nextcloud/$AIO_NAME\:"$TARGET_TAG"-arm64
docker push nextcloud/$AIO_NAME\:"$TARGET_TAG"-arm64
if [ "$AIO_NAME" != "all-in-one" ] && [ "$TARGET_TAG" = latest ]; then
docker tag nextcloud/$AIO_NAME\:"$SOURCE_TAG"-arm64 nextcloud/$AIO_NAME\:"$DATE"-"$TARGET_TAG"-arm64
docker push nextcloud/$AIO_NAME\:"$DATE"-"$TARGET_TAG"-arm64
docker tag nextcloud/$AIO_NAME\:beta-arm64 nextcloud/$AIO_NAME\:"$DATE"-latest-arm64
docker push nextcloud/$AIO_NAME\:"$DATE"-latest-arm64
fi
if [ "$AIO_NAME" = "aio-nextcloud" ] && [ "$TARGET_TAG" = latest ]; then
set -x
PHP_VERSION="$(docker inspect nextcloud/aio-nextcloud:beta-arm64 | grep PHP_VERSION | grep -oP '[0-8.]+' | sed 's|\.[0-9]\+$||')"
if [ -n "$PHP_VERSION" ]; then
docker tag nextcloud/aio-nextcloud\:beta-arm64 nextcloud/aio-nextcloud\:php"$PHP_VERSION"-latest-arm64
docker push nextcloud/aio-nextcloud\:php"$PHP_VERSION"-latest-arm64
fi
set +x
fi
fi
18 changes: 18 additions & 0 deletions .github/workflows/promote-to-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ jobs:
docker tag nextcloud/$AIO_NAME\:beta nextcloud/$AIO_NAME\:"$DATE"-latest
docker push nextcloud/$AIO_NAME\:"$DATE"-latest
fi
if [ "$AIO_NAME" = "aio-nextcloud" ]; then
set -x
PHP_VERSION="$(docker inspect nextcloud/aio-nextcloud:beta | grep PHP_VERSION | grep -oP '[0-8.]+' | sed 's|\.[0-9]\+$||')"
if [ -n "$PHP_VERSION" ]; then
docker tag nextcloud/aio-nextcloud\:beta nextcloud/aio-nextcloud\:php"$PHP_VERSION"-latest
docker push nextcloud/aio-nextcloud\:php"$PHP_VERSION"-latest
fi
set +x
fi
if [ "$AIO_NAME" != "aio-clamav" ] && [ "$AIO_NAME" != "aio-onlyoffice" ]; then
# arm64
docker pull nextcloud/$AIO_NAME\:beta-arm64
Expand All @@ -54,4 +63,13 @@ jobs:
docker tag nextcloud/$AIO_NAME\:beta-arm64 nextcloud/$AIO_NAME\:"$DATE"-latest-arm64
docker push nextcloud/$AIO_NAME\:"$DATE"-latest-arm64
fi
if [ "$AIO_NAME" = "aio-nextcloud" ]; then
set -x
PHP_VERSION="$(docker inspect nextcloud/aio-nextcloud:beta-arm64 | grep PHP_VERSION | grep -oP '[0-8.]+' | sed 's|\.[0-9]\+$||')"
if [ -n "$PHP_VERSION" ]; then
docker tag nextcloud/aio-nextcloud\:beta-arm64 nextcloud/aio-nextcloud\:php"$PHP_VERSION"-latest-arm64
docker push nextcloud/aio-nextcloud\:php"$PHP_VERSION"-latest-arm64
fi
set +x
fi
fi

0 comments on commit 484b876

Please sign in to comment.