mirror of
https://github.com/ivabus/www
synced 2024-11-10 06:15:14 +03:00
test: sync thumb images
This commit is contained in:
parent
fb788fbc4c
commit
1c18bb9dbc
3
.github/prepare-thumb-images.sh
vendored
3
.github/prepare-thumb-images.sh
vendored
|
@ -29,6 +29,3 @@ done
|
|||
|
||||
# replace packages.json with the updated version with localized image links
|
||||
mv $temp_packages $1
|
||||
|
||||
# upload thumb images to production cdn
|
||||
aws s3 sync ./packages_thumbs_images s3://www.tea.xyz/Images/packages
|
1
.github/workflows/cd.yml
vendored
1
.github/workflows/cd.yml
vendored
|
@ -71,6 +71,7 @@ jobs:
|
|||
--exclude 'pour.sh' \
|
||||
--exclude 'tea.white-paper*.pdf' \
|
||||
--exclude '*.md' \
|
||||
--exclude 'public/Images/packages/*' \
|
||||
--delete
|
||||
|
||||
#TODO create a github-action that can be used to parse the
|
||||
|
|
26
.github/workflows/staging.yml
vendored
26
.github/workflows/staging.yml
vendored
|
@ -92,17 +92,23 @@ jobs:
|
|||
with:
|
||||
cmd: '.github/build-package-pages.sh src/data/packages.json src/content/packages'
|
||||
|
||||
- uses: aws-actions/configure-aws-credentials@v1
|
||||
with:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: us-east-1
|
||||
|
||||
- name: Download and Upload package thumbnails from Airtable
|
||||
- name: Download package thumbnails from Airtable
|
||||
uses: getneil/jq-action@v1
|
||||
with:
|
||||
cmd: '.github/prepare-thumb-images.sh src/data/packages.json'
|
||||
|
||||
- name: Upload package thumbnails to AWS S3
|
||||
uses: jakejarvis/s3-sync-action@master
|
||||
with:
|
||||
args: --acl public-read --follow-symlinks
|
||||
env:
|
||||
AWS_S3_BUCKET: www.tea.xyz
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
AWS_REGION: 'us-east-1'
|
||||
SOURCE_DIR: 'packages_thumbs_images'
|
||||
DEST_DIR: 'Images/packages'
|
||||
|
||||
# - run: .github/mk-pantry-accessible.sh ${{ secrets.TEMP_JACOBS_GITHUB_PAT }}
|
||||
|
||||
# - uses: teaxyz/setup@v0
|
||||
|
@ -124,6 +130,12 @@ jobs:
|
|||
# with:
|
||||
# working-directory: .cdk
|
||||
|
||||
# - uses: aws-actions/configure-aws-credentials@v1
|
||||
# with:
|
||||
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
# aws-region: us-east-1
|
||||
|
||||
# - name: Deploy to AWS
|
||||
# id: cdk_deploy
|
||||
# run: yarn deploy
|
||||
|
|
Loading…
Reference in a new issue