Update .gitlab-ci.yml, ci/.aws/config, ci/.aws/credentials files
This commit is contained in:
@@ -12,11 +12,25 @@ build-flatpak:
|
|||||||
- flatpak-builder --force-clean --ccache --repo=repo build-dir org.eu.encom.spectral.yaml
|
- flatpak-builder --force-clean --ccache --repo=repo build-dir org.eu.encom.spectral.yaml
|
||||||
- flatpak build-bundle repo spectral.flatpak org.eu.encom.spectral
|
- flatpak build-bundle repo spectral.flatpak org.eu.encom.spectral
|
||||||
- cd ../
|
- cd ../
|
||||||
|
- mv flatpak/spectral.flatpak ./spectral-$(git rev-list --count HEAD).flatpak
|
||||||
cache:
|
cache:
|
||||||
key: "flatpak-$CI_COMMIT_REF_SLUG"
|
key: "flatpak-$CI_COMMIT_REF_SLUG"
|
||||||
paths:
|
paths:
|
||||||
- flatpak/.flatpak-builder
|
- flatpak/.flatpak-builder
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- flatpak/spectral.flatpak
|
- "*.flatpak"
|
||||||
|
|
||||||
|
deploy-flatpak:
|
||||||
|
image: python:3-alpine
|
||||||
|
stage: deploy
|
||||||
|
before_script:
|
||||||
|
- pip3 install awscli
|
||||||
|
- pip3 install awscli-plugin-endpoint
|
||||||
|
- cp -R .aws ~/
|
||||||
|
- sed -i -e "s/REGION/$REGION/g" ~/.aws/config
|
||||||
|
- sed -i -e "s/ENDPOINT_URL/$ENDPOINT_URL/g" ~/.aws/config
|
||||||
|
- sed -i -e "s/AWS_ACCESS_KEY_ID/$AWS_ACCESS_KEY_ID/g" ~/.aws/credentials
|
||||||
|
- sed -i -e "s/AWS_SECRET_ACCESS_KEY/$AWS_SECRET_ACCESS_KEY/g" ~/.aws/credentials
|
||||||
|
script:
|
||||||
|
- aws s3 cp *.flatpak s3://$BUCKET_NAME
|
||||||
|
|||||||
14
ci/.aws/config
Normal file
14
ci/.aws/config
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
[plugins]
|
||||||
|
endpoint = awscli_plugin_endpoint
|
||||||
|
|
||||||
|
[default]
|
||||||
|
region = REGION
|
||||||
|
s3 =
|
||||||
|
endpoint_url = ENDPOINT_URL
|
||||||
|
signature_version = s3v4
|
||||||
|
max_concurrent_requests = 1000
|
||||||
|
max_queue_size = 10000
|
||||||
|
multipart_threshold = 50MB
|
||||||
|
multipart_chunksize = 10MB
|
||||||
|
s3api =
|
||||||
|
endpoint_url = ENDPOINT_URL
|
||||||
3
ci/.aws/credentials
Normal file
3
ci/.aws/credentials
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[default]
|
||||||
|
aws_access_key_id=AWS_ACCESS_KEY_ID
|
||||||
|
aws_secret_access_key=AWS_SECRET_ACCESS_KEY
|
||||||
Reference in New Issue
Block a user