* Revert "CI aws git checkout (#10451)"
This reverts commit 3e1d73126c.
* Update .gitlab-ci.yml
revert aws script with small fixes
* Delete publish-aws.sh
			
			
This commit is contained in:
		
							parent
							
								
									91933d857d
								
							
						
					
					
						commit
						742a6007fe
					
				| @ -12,6 +12,10 @@ variables: | ||||
|   CARGO_HOME:                      "${CI_PROJECT_DIR}/.cargo" | ||||
|   CARGO_TARGET:                    x86_64-unknown-linux-gnu | ||||
| 
 | ||||
| .no_git:                           &no_git #disable git strategy | ||||
|   variables: | ||||
|     GIT_STRATEGY:                  none | ||||
|     GIT_SUBMODULE_STRATEGY:        none | ||||
| 
 | ||||
| .releaseable_branches:             # list of git refs for building GitLab artifacts (think "pre-release binaries") | ||||
|   only:                            &releaseable_branches | ||||
| @ -21,7 +25,7 @@ variables: | ||||
|     - schedules | ||||
| 
 | ||||
| 
 | ||||
| .collect_artifacts:                &collect_artifacts | ||||
| .collect_artifacts:                &collect_artifacts  | ||||
|   artifacts: | ||||
|     name:                          "${CI_JOB_NAME}_${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" | ||||
|     when:                          on_success | ||||
| @ -164,13 +168,25 @@ publish-awss3-release: | ||||
|   image:                           parity/awscli:latest | ||||
|   stage:                           publish | ||||
|   only:                            *releaseable_branches | ||||
|   <<:                              *no_git | ||||
|   cache:                           {} | ||||
|   dependencies: | ||||
|     - build-linux | ||||
|     - build-darwin | ||||
|     - build-windows | ||||
|   script: | ||||
|     - scripts/gitlab/publish-aws.sh | ||||
|     - echo "__________Push binaries to AWS S3____________" | ||||
|     - case "${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" in | ||||
|        (beta|stable|nightly) | ||||
|          export BUCKET=releases.parity.io/ethereum; | ||||
|          ;; | ||||
|        (*) | ||||
|          export BUCKET=builds-parity; | ||||
|          ;; | ||||
|      esac | ||||
|     - aws s3 sync ./artifacts s3://${BUCKET}/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}/ | ||||
|     - echo "__________Read from S3____________" | ||||
|     - aws s3 ls s3://${BUCKET}/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}} --recursive --human-readable --summarize | ||||
|   tags: | ||||
|     - linux-docker | ||||
| 
 | ||||
|  | ||||
| @ -1,18 +0,0 @@ | ||||
| #!/bin/bash | ||||
| 
 | ||||
| set -e # fail on any error | ||||
| set -u # treat unset variables as error | ||||
| 
 | ||||
| echo "__________Push binaries to AWS S3____________" | ||||
| case "${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" in | ||||
|     (beta|stable|nightly) | ||||
|       BUCKET=releases.parity.io/ethereum; | ||||
|       ;; | ||||
|     (*) | ||||
|       BUCKET=builds-parity; | ||||
|       ;; | ||||
|   esac | ||||
| aws s3 sync ./artifacts s3://${BUCKET}/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}/ | ||||
| echo "__________Read from S3____________" | ||||
| aws s3 ls s3://${BUCKET}/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}/ | ||||
|     --recursive --human-readable --summarize | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user