mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-23 01:00:20 +08:00
test release
This commit is contained in:
parent
46fb5d2ca0
commit
9500fb2e1d
32
.github/workflows/docker.yml
vendored
32
.github/workflows/docker.yml
vendored
@ -1,4 +1,6 @@
|
|||||||
# This action is used for building websoft9 docker images to DockerHub at one time
|
# This action is used for building websoft9 docker images to DockerHub at one time
|
||||||
|
# This action is also release Media and Libarary with build apphub image
|
||||||
|
|
||||||
# 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
|
# 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
|
# 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...
|
# It have enable multiPlatform, you add more platform at platform: linux/amd64...
|
||||||
@ -47,13 +49,16 @@ jobs:
|
|||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
|
|
||||||
- name: Prepare tags and files for Docker build
|
- name: Prepare tags and files for Docker build
|
||||||
|
id: convert_version
|
||||||
run: |
|
run: |
|
||||||
APP=${{ matrix.app }}
|
APP=${{ matrix.app }}
|
||||||
TAG=$(grep 'LABEL version' "docker/$APP/Dockerfile" | cut -d'"' -f2 | xargs)
|
TAG=$(grep 'LABEL version' "docker/$APP/Dockerfile" | cut -d'"' -f2 | xargs)
|
||||||
echo $APP version is $TAG
|
echo $APP version is $TAG
|
||||||
if [[ "$TAG" == *"-"* ]]; then
|
if [[ "$TAG" == *"-"* ]]; then
|
||||||
TAGS="$TAG"
|
TAGS="$TAG"
|
||||||
|
echo "CHANNEL=dev" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
|
echo "CHANNEL=release" >> $GITHUB_ENV
|
||||||
IFS='.' read -ra PARTS <<< "$TAG"
|
IFS='.' read -ra PARTS <<< "$TAG"
|
||||||
TAGS="latest"
|
TAGS="latest"
|
||||||
TAG_PART=""
|
TAG_PART=""
|
||||||
@ -96,13 +101,36 @@ jobs:
|
|||||||
path: ${{env.DIRECTORY}}
|
path: ${{env.DIRECTORY}}
|
||||||
if: env.APP == 'apphub' && env.MEDIA_FROM == 'source'
|
if: env.APP == 'apphub' && env.MEDIA_FROM == 'source'
|
||||||
|
|
||||||
- name: Download media-latest.zip from Websoft9 artifact
|
- name: Download media-latest.zip from Websoft9 artifact
|
||||||
if: env.MEDIA_FROM == 'artifact'
|
|
||||||
run: |
|
run: |
|
||||||
curl -o media.zip https://w9artifact.blob.core.windows.net/release/websoft9/plugin/media/media-latest.zip
|
curl -o media.zip https://w9artifact.blob.core.windows.net/release/websoft9/plugin/media/media-latest.zip
|
||||||
|
if: env.MEDIA_FROM == 'artifact'
|
||||||
|
|
||||||
|
# release media step1
|
||||||
|
- name: Create more files
|
||||||
|
run: |
|
||||||
|
version_core=$(grep 'ARG MEDIA_VERSION' "docker/apphub/Dockerfile" | cut -d'"' -f2 | xargs)
|
||||||
|
cp ${{env.DIRECTORY}}/media.zip media/media-latest.zip
|
||||||
|
cp media/media-latest.zip media/media-$version_core.zip
|
||||||
|
jq --arg version "$version_core" '.Version = $version' media/media.json > media/temp.json && mv media/temp.json media/media.json
|
||||||
|
if: env.APP == 'apphub' && env.MEDIA_FROM == 'source'
|
||||||
|
|
||||||
|
# release media step2
|
||||||
|
- name: Upload To Azure Blob
|
||||||
|
uses: LanceMcCarthy/Action-AzureBlobUpload@v2
|
||||||
|
with:
|
||||||
|
connection_string: ${{ secrets.AZURE_STORAGE_ARTIFACT }}
|
||||||
|
container_name: ${{ steps.convert_version.outputs.CHANNEL }}
|
||||||
|
source_folder: media/
|
||||||
|
destination_folder: ./websoft9/plugin/media
|
||||||
|
delete_if_exists: true
|
||||||
|
fail_if_source_empty: true
|
||||||
|
if: env.APP == 'apphub' && env.MEDIA_FROM == 'source'
|
||||||
|
|
||||||
##------------ special task for apphub end----------------------#
|
##------------ special task for apphub end----------------------#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Build & push Docker image
|
- name: Build & push Docker image
|
||||||
uses: mr-smithers-excellent/docker-build-push@v6
|
uses: mr-smithers-excellent/docker-build-push@v6
|
||||||
with:
|
with:
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# This file can running at actions
|
# This file can running at actions
|
||||||
|
# MEDIA_VERSION and LIBRARY_VERSION will trigger its release
|
||||||
# modify time: 202312141910, you can modify here to trigger Docker Build action
|
# modify time: 202312141910, you can modify here to trigger Docker Build action
|
||||||
|
|
||||||
|
|
||||||
@ -8,6 +9,8 @@ LABEL version="0.0.6"
|
|||||||
|
|
||||||
WORKDIR /websoft9
|
WORKDIR /websoft9
|
||||||
|
|
||||||
|
ARG MEDIA_VERSION="0.0.9"
|
||||||
|
ARG LIBRARY_VERSION="0.5.21"
|
||||||
ARG WEBSOFT9_REPO="https://github.com/Websoft9/websoft9"
|
ARG WEBSOFT9_REPO="https://github.com/Websoft9/websoft9"
|
||||||
ARG WEBSOFT9_ARTIFACT="https://w9artifact.blob.core.windows.net/release/websoft9"
|
ARG WEBSOFT9_ARTIFACT="https://w9artifact.blob.core.windows.net/release/websoft9"
|
||||||
ARG LIBRARY_REPO="https://github.com/Websoft9/docker-library"
|
ARG LIBRARY_REPO="https://github.com/Websoft9/docker-library"
|
||||||
|
8
media/CHANGELOG.md
Normal file
8
media/CHANGELOG.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
## 0.0.9 release on 2023-12-14
|
||||||
|
1. zentao,magento,wordpress version format update to contentful
|
||||||
|
|
||||||
|
## 1.0.0-rc2 release on 2023-10-26
|
||||||
|
1. media init
|
||||||
|
|
||||||
|
## 1.0.0-rc1 release on 2023-10-26
|
||||||
|
1. media init
|
@ -3,7 +3,7 @@
|
|||||||
"Repository": "https://github.com/Websoft9/plugin-media",
|
"Repository": "https://github.com/Websoft9/plugin-media",
|
||||||
"Update URI": "https://example.com/my-plugin/",
|
"Update URI": "https://example.com/my-plugin/",
|
||||||
"Description": "Wesoft9 application Logos, data and Screen shoot.",
|
"Description": "Wesoft9 application Logos, data and Screen shoot.",
|
||||||
"Version": "0.0.7",
|
"Version": "",
|
||||||
"Requires at most": "1.9.0",
|
"Requires at most": "1.9.0",
|
||||||
"Requires at least": "0.0.2",
|
"Requires at least": "0.0.2",
|
||||||
"Author": "Websoft9 Inc",
|
"Author": "Websoft9 Inc",
|
||||||
|
@ -9,10 +9,6 @@
|
|||||||
"settings": "0.0.8",
|
"settings": "0.0.8",
|
||||||
"navigator": "0.5.10"
|
"navigator": "0.5.10"
|
||||||
},
|
},
|
||||||
"data": {
|
|
||||||
"media": "0.0.8",
|
|
||||||
"library": "0.5.20"
|
|
||||||
},
|
|
||||||
"OS": {
|
"OS": {
|
||||||
"Fedora": [
|
"Fedora": [
|
||||||
"38",
|
"38",
|
||||||
|
Loading…
Reference in New Issue
Block a user