Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanguage committed Mar 13, 2024
2 parents c6deb57 + db6eac0 commit b41c770
Show file tree
Hide file tree
Showing 8 changed files with 114 additions and 11 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
paths:
- 'environments/*.yml'
workflow_dispatch:

jobs:
build-and-upload:
Expand All @@ -26,21 +27,21 @@ jobs:
- name: Discover Environments
id: discover
run: |
echo "envs=$(ls environments/*.yml | xargs -n 1 basename)" >> $GITHUB_ENV
echo "envs=$(ls environments/*.yml | xargs -n 1 basename | tr '\n' ' ')" >> $GITHUB_ENV
- name: Create, Pack, and Upload Environments
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_S3_BUCKET_NAME: ${{ secrets.AWS_S3_BUCKET_NAME }}
AWS_S3_ENDPOINT: ${{ secrets.AWS_S3_ENDPOINT }}
AWS_S3_BUCKET_NAME: "bioimage.io"
AWS_S3_ENDPOINT: "https://uk1s3.embassy.ebi.ac.uk"
AWS_EC2_METADATA_DISABLED: "true" # https://github.com/aws/aws-cli/issues/5262#issuecomment-705832151
PYTHONNOUSERSITE: "True"
run: |
# copy manifest to s3
aws s3 --endpoint-url $AWS_S3_ENDPOINT cp hypha-services-manifest.yaml s3://$AWS_S3_BUCKET_NAME/hypha-services-manifest.yaml
# copy the services folder to s3
aws s3 --endpoint-url $AWS_S3_ENDPOINT cp --recursive services s3://$AWS_S3_BUCKET_NAME/services
# aws s3 --endpoint-url $AWS_S3_ENDPOINT cp hypha-services-manifest.yaml s3://$AWS_S3_BUCKET_NAME/hypha-services-manifest.yaml
# copy the apps folder to s3
aws s3 --endpoint-url $AWS_S3_ENDPOINT cp --recursive apps s3://$AWS_S3_BUCKET_NAME/apps
for env_file in $envs; do
env_name="${env_file%.*}"
echo "Processing $env_name"
Expand All @@ -52,4 +53,4 @@ jobs:
conda env remove -n $env_name
rm $env_name.tar.gz
done
1 change: 1 addition & 0 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
paths:
- 'environments/**/Dockerfile'
workflow_dispatch:

env:
REGISTRY: ghcr.io
Expand Down
2 changes: 1 addition & 1 deletion docs/img/bioengine-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
100 changes: 100 additions & 0 deletions docs/img/bioengine-logo-black-acc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/img/bioengine-logo-black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/img/bioengine-logo-gray.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/img/bioengine-logo-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions environments/pyimagej-py310.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ dependencies:
- pip
- pip:
- imjoy-rpc

0 comments on commit b41c770

Please sign in to comment.