Browse Source
Merge pull request #161 from lluiscampos/MEN-3148-publish-raspbian-mender-artifact
Publish the .mender Artifact along the Raspbian SD image
2.0.x
Lluis Campos
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
.gitlab-ci.yml
|
|
@ -144,13 +144,18 @@ publish:s3: |
|
|
|
- aws s3 cp s3://mender-gitlab-tmp-storage/$CI_PROJECT_NAME/$CI_PIPELINE_ID/deploy.tar.gz deploy.tar.gz |
|
|
|
- tar xzf deploy.tar.gz |
|
|
|
script: |
|
|
|
- echo "Publishing ${RASPBIAN_NAME}-mender-${MENDER_CLIENT_VERSION}.img.xz version to S3" |
|
|
|
# Prepare high privilege S3 keys (the base keys are for the tmp storage only) |
|
|
|
- export AWS_ACCESS_KEY_ID=$PUBLISH_AWS_ACCESS_KEY_ID |
|
|
|
- export AWS_SECRET_ACCESS_KEY=$PUBLISH_AWS_SECRET_ACCESS_KEY |
|
|
|
- echo "Publishing ${RASPBIAN_NAME}-mender-${MENDER_CLIENT_VERSION}.img.xz version to S3" |
|
|
|
- aws s3 cp deploy/raspberrypi-${RASPBIAN_NAME}-mender-${MENDER_CLIENT_VERSION}-mender.img.xz |
|
|
|
s3://$S3_BUCKET_NAME/${RASPBIAN_NAME}/arm/${RASPBIAN_NAME}-mender-${MENDER_CLIENT_VERSION}.img.xz |
|
|
|
- aws s3api put-object-acl --acl public-read --bucket $S3_BUCKET_NAME |
|
|
|
--key ${RASPBIAN_NAME}/arm/${RASPBIAN_NAME}-mender-${MENDER_CLIENT_VERSION}.img.xz |
|
|
|
- echo "Publishing ${RASPBIAN_NAME}-mender-${MENDER_CLIENT_VERSION}.mender version to S3" |
|
|
|
- aws s3 cp deploy/raspberrypi-${RASPBIAN_NAME}-mender-${MENDER_CLIENT_VERSION}-mender.mender |
|
|
|
s3://$S3_BUCKET_NAME/${RASPBIAN_NAME}/arm/${RASPBIAN_NAME}-mender-${MENDER_CLIENT_VERSION}.mender |
|
|
|
- aws s3api put-object-acl --acl public-read --bucket $S3_BUCKET_NAME |
|
|
|
--key ${RASPBIAN_NAME}/arm/${RASPBIAN_NAME}-mender-${MENDER_CLIENT_VERSION}.mender |
|
|
|
only: |
|
|
|
- /^(master|[0-9]+\.[0-9]+\.x)$/ |
|
|
|