mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
remove defaults
This commit is contained in:
@@ -6,12 +6,10 @@ inputs:
|
|||||||
description: 'packages to cache'
|
description: 'packages to cache'
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: 'dist nxcache'
|
|
||||||
persistent-packages:
|
persistent-packages:
|
||||||
description: 'cache key'
|
description: 'cache key'
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: 'nxcache'
|
|
||||||
cache-key-suffix:
|
cache-key-suffix:
|
||||||
description: 'cache key suffix'
|
description: 'cache key suffix'
|
||||||
required: false
|
required: false
|
||||||
@@ -28,9 +26,9 @@ runs:
|
|||||||
packages=( $(echo ${{ inputs.packages }}) )
|
packages=( $(echo ${{ inputs.packages }}) )
|
||||||
for i in "${packages[@]}"; do
|
for i in "${packages[@]}"; do
|
||||||
echo "downloading current run cache artifacts from ${REMOTE_PATH}/$i.tar.gz"
|
echo "downloading current run cache artifacts from ${REMOTE_PATH}/$i.tar.gz"
|
||||||
time aws s3 cp --no-progress s3://${S3_BUILD_BUCKET_SHORT_NAME}/${REMOTE_PATH}/$i.tar.gz $i.tar.gz
|
aws s3 cp --no-progress s3://${S3_BUILD_BUCKET_SHORT_NAME}/${REMOTE_PATH}/$i.tar.gz $i.tar.gz
|
||||||
du -h $i.tar.gz
|
du -h $i.tar.gz
|
||||||
time tar xzf $i.tar.gz
|
tar xzf $i.tar.gz
|
||||||
done
|
done
|
||||||
- name: download and extract persistent cache artifacts from s3
|
- name: download and extract persistent cache artifacts from s3
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -46,7 +44,7 @@ runs:
|
|||||||
cache_exists=$(aws s3 ls $REMOTE_FILE_PATH > /dev/null)
|
cache_exists=$(aws s3 ls $REMOTE_FILE_PATH > /dev/null)
|
||||||
if [ $cache_exists -eq 0 ]; then
|
if [ $cache_exists -eq 0 ]; then
|
||||||
echo "downloading persistent cache artifacts from $REMOTE_FILE_PATH"
|
echo "downloading persistent cache artifacts from $REMOTE_FILE_PATH"
|
||||||
time aws s3 cp --no-progress REMOTE_FILE_PATH $i.tar.gz
|
aws s3 cp --no-progress REMOTE_FILE_PATH $i.tar.gz
|
||||||
du -h $i.tar.gz
|
du -h $i.tar.gz
|
||||||
tar xzf $i.tar.gz
|
tar xzf $i.tar.gz
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -25,10 +25,10 @@ runs:
|
|||||||
packages=( $(echo ${{ inputs.packages }}) )
|
packages=( $(echo ${{ inputs.packages }}) )
|
||||||
for i in "${packages[@]}"; do
|
for i in "${packages[@]}"; do
|
||||||
echo "processing $i"
|
echo "processing $i"
|
||||||
time tar czf $i.tar.gz $i
|
tar czf $i.tar.gz $i
|
||||||
echo "package size: $(du -h $i.tar.gz)"
|
echo "package size: $(du -h $i.tar.gz)"
|
||||||
echo "uploading current run artifacts to ${REMOTE_PATH}/$i.tar.gz"
|
echo "uploading current run artifacts to ${REMOTE_PATH}/$i.tar.gz"
|
||||||
time aws s3 cp --no-progress $i.tar.gz s3://${S3_BUILD_BUCKET_SHORT_NAME}/${REMOTE_PATH}/$i.tar.gz
|
aws s3 cp --no-progress $i.tar.gz s3://${S3_BUILD_BUCKET_SHORT_NAME}/${REMOTE_PATH}/$i.tar.gz
|
||||||
done
|
done
|
||||||
- name: tar and upload persistent cache artifacts
|
- name: tar and upload persistent cache artifacts
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -40,10 +40,10 @@ runs:
|
|||||||
fi
|
fi
|
||||||
packages=( $(echo ${{ inputs.persistent-packages }}) )
|
packages=( $(echo ${{ inputs.persistent-packages }}) )
|
||||||
for i in "${packages[@]}"; do
|
for i in "${packages[@]}"; do
|
||||||
time tar czf $i.tar.gz $i
|
tar czf $i.tar.gz $i
|
||||||
du -h $i.tar.gz
|
du -h $i.tar.gz
|
||||||
echo "pushing persistent cache to $REMOTE_PATH"
|
echo "pushing persistent cache to $REMOTE_PATH"
|
||||||
time aws s3 cp --no-progress $i.tar.gz s3://${S3_BUILD_BUCKET_SHORT_NAME}/${REMOTE_PATH}/$i.tar.gz
|
aws s3 cp --no-progress $i.tar.gz s3://${S3_BUILD_BUCKET_SHORT_NAME}/${REMOTE_PATH}/$i.tar.gz
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user