From a9c92c2f143146b45d633d0ce0ca2e6a696b3599 Mon Sep 17 00:00:00 2001 From: Darren <27513732@qq.com> Date: Fri, 8 Dec 2023 09:05:22 +0800 Subject: [PATCH] test docker image --- .github/workflows/docker.yml | 7 +++++++ apps/discuz/Dockerfile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f27a3f862..109c14873 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,3 +1,8 @@ +# This action is use for build multiply applications to DockerHub at one time +# It need LABEL version="" at your dockerfile. And it can divide version. e.g version v3.4.0.3 will divide to latest,v3,v3.4,v3.4.0,v3.4.0.3 +# When version include "-", it not divide version and build ony one test image +# It have enable multiPlatform, you add more platform at platform: linux/amd64... + name: Build image to DockerHub on: @@ -73,6 +78,8 @@ jobs: registry: docker.io directory: ${{env.DIRECTORY}} dockerfile: ${{env.DOCKERFILE}} + multiPlatform: true + platform: linux/amd64 username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} diff --git a/apps/discuz/Dockerfile b/apps/discuz/Dockerfile index d4bd68d34..e1b561c19 100644 --- a/apps/discuz/Dockerfile +++ b/apps/discuz/Dockerfile @@ -3,7 +3,7 @@ FROM joomla:php7.4-apache LABEL maintainer="help@websoft9.com" -LABEL version="v3.4.0.3-rc1" +LABEL version="v3.4.0" LABEL source="Discuz_X3.4_SC_UTF8_20220811" LABEL description="Discuz"