diff --git a/.github/actions/before-install/action.yml b/.github/actions/before-install/action.yml index 0f4ddf244e..ff18332dc6 100644 --- a/.github/actions/before-install/action.yml +++ b/.github/actions/before-install/action.yml @@ -6,22 +6,6 @@ runs: steps: - uses: ./.github/actions/setup - - name: setup S3 caching - shell: bash - run: | - S3_DBP_PATH="s3://alfresco-travis-builds/aca" - - if [ "${{ github.event_name }}" == "push" ]; then - S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/$BRANCH_NAME" - elif [ "${{ github.event_name }}" == "pull_request" ]; then - S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/$BRANCH_NAME" - echo "BASE_HASH=origin/$BRANCH_NAME" >> $GITHUB_ENV - elif [ "${{ github.event_name }}" == "schedule" ]; then - S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/cron" - else - S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/api" - fi - - name: ADF linking if: ${{ github.event_name == 'pull_request'}} uses: ./.github/actions/adf-linking diff --git a/.github/actions/download-job-artifact/action.yml b/.github/actions/download-job-artifact/action.yml deleted file mode 100644 index 9d11f80f98..0000000000 --- a/.github/actions/download-job-artifact/action.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: "Download build artifacts" -description: "Download build artifacts" - -inputs: - artifact: - description: 'path to the s3 artifact (tar.bz2) to download and extract' - required: true - type: string - output: - description: 'directory to extract the archive to' - required: true - type: string - aws-access-key-id: - description: 'aws access key id' - required: true - type: string - aws-secret-access-key: - description: 'aws secret access key' - required: true - type: string - aws-region: - description: 'aws region' - required: true - type: string - -runs: - using: "composite" - steps: - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v2 - with: - aws-access-key-id: ${{ inputs.aws-access-key-id }} - aws-secret-access-key: ${{ inputs.aws-secret-access-key }} - aws-region: ${{ inputs.aws-region }} - - - name: Download build artifacts from s3 - shell: bash - run: | - test ! -d ${{ inputs.output }} && mkdir -p ${{ inputs.output }} - aws s3 cp ${{ inputs.artifact }} ./s3-artifact.tmp - echo 'artifact download done' - tar -xvf ./s3-artifact.tmp -C ${{ inputs.output }} >&/dev/null - echo 'tar the artifact done' - rm ./s3-artifact.tmp - echo 'remove tmp file' diff --git a/.github/actions/upload-job-artifact/action.yml b/.github/actions/upload-job-artifact/action.yml deleted file mode 100644 index a0761597ac..0000000000 --- a/.github/actions/upload-job-artifact/action.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: "Upload build artifacts" -description: "Upload build artifacts" - -inputs: - artifact: - description: 'path to the artifact to archieve (tar.bz2) and upload (like ./dist)' - required: true - type: string - output: - description: 'the S3 object to copy it to, like: s3://bucket-name/folder/whatever.tar.bz2' - required: true - type: string - aws-access-key-id: - description: 'aws access key id' - required: true - type: string - aws-secret-access-key: - description: 'aws secret access key' - required: true - type: string - aws-region: - description: 'aws region' - required: true - type: string - -runs: - using: "composite" - steps: - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v2 - with: - aws-access-key-id: ${{ inputs.aws-access-key-id }} - aws-secret-access-key: ${{ inputs.aws-secret-access-key }} - aws-region: ${{ inputs.aws-region }} - - - name: Upload build artifacts to s3 - shell: bash - run: | - tar cvfj ./s3-artifact.tmp -C ${{ inputs.artifact }} `ls ${{ inputs.artifact }}` - aws s3 cp ./s3-artifact.tmp ${{ inputs.output }} - rm ./s3-artifact.tmp