mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 23:20:23 +00:00
test docker build
This commit is contained in:
parent
daed08e2db
commit
f5a6573dde
3 changed files with 8 additions and 10 deletions
3
.github/workflows/docker.yml
vendored
3
.github/workflows/docker.yml
vendored
|
@ -77,8 +77,9 @@ jobs:
|
||||||
if: env.APP == 'apphub'
|
if: env.APP == 'apphub'
|
||||||
|
|
||||||
- name: Download media.zip from artifacts
|
- name: Download media.zip from artifacts
|
||||||
uses: actions/download-artifact@v2
|
uses: Legit-Labs/action-download-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
workflow: media.yml
|
||||||
name: media
|
name: media
|
||||||
path: ${{env.DIRECTORY}}
|
path: ${{env.DIRECTORY}}
|
||||||
if: env.APP == 'apphub'
|
if: env.APP == 'apphub'
|
||||||
|
|
11
.github/workflows/media.yml
vendored
11
.github/workflows/media.yml
vendored
|
@ -4,7 +4,7 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build_New_Version_For_Release:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
ACCESS_TOKEN: ${{ secrets.CONTENTFUL_GRAPHQLTOKEN }}
|
ACCESS_TOKEN: ${{ secrets.CONTENTFUL_GRAPHQLTOKEN }}
|
||||||
|
@ -16,7 +16,7 @@ jobs:
|
||||||
CI: false
|
CI: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install GNU Parallel
|
- name: Install GNU Parallel
|
||||||
run: sudo apt-get install -y parallel
|
run: sudo apt-get install -y parallel
|
||||||
|
@ -54,12 +54,11 @@ jobs:
|
||||||
echo ${ITEMS[@]} | jq -s '.' > $DATA_DIR/product_${LOCALE:0:2}.json
|
echo ${ITEMS[@]} | jq -s '.' > $DATA_DIR/product_${LOCALE:0:2}.json
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Install ossutil
|
- name: Install and configure Aliyun ossutil
|
||||||
run: |
|
run: |
|
||||||
wget http://gosspublic.alicdn.com/ossutil/1.7.6/ossutil64
|
wget http://gosspublic.alicdn.com/ossutil/1.7.6/ossutil64
|
||||||
chmod 755 ossutil64
|
chmod 755 ossutil64
|
||||||
- name: Configure ossutil
|
./ossutil64 config -e ${{ secrets.OSS_ENDPOINT }} -i ${{ secrets.OSS_ACCESS_KEY_ID }} -k ${{ secrets.OSS_ACCESS_KEY_SECRET }}
|
||||||
run: ./ossutil64 config -e ${{ secrets.OSS_ENDPOINT }} -i ${{ secrets.OSS_ACCESS_KEY_ID }} -k ${{ secrets.OSS_ACCESS_KEY_SECRET }}
|
|
||||||
|
|
||||||
- name: Download logos from oss
|
- name: Download logos from oss
|
||||||
run: ./ossutil64 cp oss://libs-websoft9-com/Websoft9/logo/product/ $APPSTORE_LOGO_DIR -r --update
|
run: ./ossutil64 cp oss://libs-websoft9-com/Websoft9/logo/product/ $APPSTORE_LOGO_DIR -r --update
|
||||||
|
@ -70,7 +69,7 @@ jobs:
|
||||||
zip -r media.zip media/
|
zip -r media.zip media/
|
||||||
|
|
||||||
- name: Upload media.zip to artifacts
|
- name: Upload media.zip to artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: media
|
name: media
|
||||||
path: media.zip
|
path: media.zip
|
|
@ -1,4 +1,4 @@
|
||||||
# modify time: 202312081555, you can modify here to trigger Docker Build action
|
# modify time: 202312081656, you can modify here to trigger Docker Build action
|
||||||
|
|
||||||
FROM python:3.10-slim-bullseye
|
FROM python:3.10-slim-bullseye
|
||||||
LABEL maintainer="Websoft9<help@websoft9.com>"
|
LABEL maintainer="Websoft9<help@websoft9.com>"
|
||||||
|
@ -6,8 +6,6 @@ LABEL version="0.0.6"
|
||||||
|
|
||||||
WORKDIR /websoft9
|
WORKDIR /websoft9
|
||||||
|
|
||||||
ENV LIBRARY_VERSION=0.5.18
|
|
||||||
ENV MEDIA_VERSION=0.0.7
|
|
||||||
ENV websoft9_repo="https://github.com/Websoft9/websoft9"
|
ENV websoft9_repo="https://github.com/Websoft9/websoft9"
|
||||||
ENV websoft9_artifact="https://w9artifact.blob.core.windows.net/release/websoft9"
|
ENV websoft9_artifact="https://w9artifact.blob.core.windows.net/release/websoft9"
|
||||||
ENV library_repo="https://github.com/Websoft9/docker-library"
|
ENV library_repo="https://github.com/Websoft9/docker-library"
|
||||||
|
|
Loading…
Reference in a new issue