test docker build

This commit is contained in:
Darren 2023-12-08 16:57:26 +08:00 committed by GitHub
parent daed08e2db
commit f5a6573dde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 10 deletions

View file

@ -77,8 +77,9 @@ jobs:
if: env.APP == 'apphub'
- name: Download media.zip from artifacts
uses: actions/download-artifact@v2
uses: Legit-Labs/action-download-artifact@v2
with:
workflow: media.yml
name: media
path: ${{env.DIRECTORY}}
if: env.APP == 'apphub'

View file

@ -4,7 +4,7 @@ on:
workflow_dispatch:
jobs:
Build_New_Version_For_Release:
build:
runs-on: ubuntu-latest
env:
ACCESS_TOKEN: ${{ secrets.CONTENTFUL_GRAPHQLTOKEN }}
@ -16,7 +16,7 @@ jobs:
CI: false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install GNU Parallel
run: sudo apt-get install -y parallel
@ -54,12 +54,11 @@ jobs:
echo ${ITEMS[@]} | jq -s '.' > $DATA_DIR/product_${LOCALE:0:2}.json
done
- name: Install ossutil
- name: Install and configure Aliyun ossutil
run: |
wget http://gosspublic.alicdn.com/ossutil/1.7.6/ossutil64
chmod 755 ossutil64
- name: Configure ossutil
run: ./ossutil64 config -e ${{ secrets.OSS_ENDPOINT }} -i ${{ secrets.OSS_ACCESS_KEY_ID }} -k ${{ secrets.OSS_ACCESS_KEY_SECRET }}
./ossutil64 config -e ${{ secrets.OSS_ENDPOINT }} -i ${{ secrets.OSS_ACCESS_KEY_ID }} -k ${{ secrets.OSS_ACCESS_KEY_SECRET }}
- name: Download logos from oss
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/
- name: Upload media.zip to artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: media
path: media.zip

View file

@ -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
LABEL maintainer="Websoft9<help@websoft9.com>"
@ -6,8 +6,6 @@ LABEL version="0.0.6"
WORKDIR /websoft9
ENV LIBRARY_VERSION=0.5.18
ENV MEDIA_VERSION=0.0.7
ENV websoft9_repo="https://github.com/Websoft9/websoft9"
ENV websoft9_artifact="https://w9artifact.blob.core.windows.net/release/websoft9"
ENV library_repo="https://github.com/Websoft9/docker-library"