Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a php tag to the nextcloud container #19

Merged
merged 1 commit into from
May 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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