diff --git a/.github/workflows/omnex-plateform-app-build.yml b/.github/workflows/omnex-plateform-app-build.yml index 4b6b462..3300b39 100644 --- a/.github/workflows/omnex-plateform-app-build.yml +++ b/.github/workflows/omnex-plateform-app-build.yml @@ -62,8 +62,8 @@ jobs: env: AWS_ACCESS_KEY_ID: ${{ secrets.RUSTFS_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.RUSTFS_SECRET_KEY }} - S3_ENDPOINT: https://rustfs.uber-stup.club - S3_BUCKET: apk-builds + S3_ENDPOINT: ${{ secrets.RUSTFS_ENDPOINT }} + S3_BUCKET: ${{ secrets.RUSTFS_BUCKET_NAME }} run: python scripts/eas_cache.py restore --app omnex-plateform-app - name: Build APK (local) @@ -82,12 +82,12 @@ jobs: env: AWS_ACCESS_KEY_ID: ${{ secrets.RUSTFS_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.RUSTFS_SECRET_KEY }} - S3_ENDPOINT: https://rustfs.uber-stup.club - S3_BUCKET: apk-builds + S3_ENDPOINT: ${{ secrets.RUSTFS_ENDPOINT }} + S3_BUCKET: ${{ secrets.RUSTFS_BUCKET_NAME }} run: python scripts/eas_cache.py save --app omnex-plateform-app - name: Rename & upload APK to RustFS - working-directory: omnex-plateform-app + working-directory: omnex-plateform-client env: AWS_ACCESS_KEY_ID: ${{ secrets.RUSTFS_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.RUSTFS_SECRET_KEY }} @@ -95,8 +95,8 @@ jobs: run: | mv *.apk ${{ steps.config.outputs.apk_name }} aws s3 cp ${{ steps.config.outputs.apk_name }} \ - s3://apk-builds/${{ steps.config.outputs.profile }}/${{ steps.config.outputs.apk_name }} \ - --endpoint-url https://rustfs.uber-stup.club \ + s3://${{ secrets.RUSTFS_BUCKET_NAME }}/${{ steps.config.outputs.profile }}/${{ steps.config.outputs.apk_name }} \ + --endpoint-url ${{ secrets.RUSTFS_ENDPOINT }} \ --no-verify-ssl - name: Publish OTA update to Xavia diff --git a/.github/workflows/omnex-plateform-client-build.yml b/.github/workflows/omnex-plateform-client-build.yml index 20517c7..55e3aae 100644 --- a/.github/workflows/omnex-plateform-client-build.yml +++ b/.github/workflows/omnex-plateform-client-build.yml @@ -62,8 +62,8 @@ jobs: env: AWS_ACCESS_KEY_ID: ${{ secrets.RUSTFS_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.RUSTFS_SECRET_KEY }} - S3_ENDPOINT: https://rustfs.uber-stup.club - S3_BUCKET: apk-builds + S3_ENDPOINT: ${{ secrets.RUSTFS_ENDPOINT }} + S3_BUCKET: ${{ secrets.RUSTFS_BUCKET_NAME }} run: python scripts/eas_cache.py restore --app omnex-plateform-client - name: Build APK (local) @@ -82,8 +82,8 @@ jobs: env: AWS_ACCESS_KEY_ID: ${{ secrets.RUSTFS_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.RUSTFS_SECRET_KEY }} - S3_ENDPOINT: https://rustfs.uber-stup.club - S3_BUCKET: apk-builds + S3_ENDPOINT: ${{ secrets.RUSTFS_ENDPOINT }} + S3_BUCKET: ${{ secrets.RUSTFS_BUCKET_NAME }} run: python scripts/eas_cache.py save --app omnex-plateform-client - name: Rename & upload APK to RustFS @@ -95,8 +95,8 @@ jobs: run: | mv *.apk ${{ steps.config.outputs.apk_name }} aws s3 cp ${{ steps.config.outputs.apk_name }} \ - s3://apk-builds/${{ steps.config.outputs.profile }}/${{ steps.config.outputs.apk_name }} \ - --endpoint-url https://rustfs.uber-stup.club \ + s3://${{ secrets.RUSTFS_BUCKET_NAME }}/${{ steps.config.outputs.profile }}/${{ steps.config.outputs.apk_name }} \ + --endpoint-url ${{ secrets.RUSTFS_ENDPOINT }} \ --no-verify-ssl - name: Publish OTA update to Xavia