|
32 | 32 | echo ::set-output name=UPLOAD_NAME::$GITHUB_SHA |
33 | 33 | # echo ::set-output name=UPLOAD_NAME::${SOURCE_TAG:-$GITHUB_SHA} |
34 | 34 |
|
35 | | - # min profile build |
36 | | - - name: Process the min profile build |
37 | | - run: ./offline/min-build/build.sh |
38 | | - env: |
39 | | - GPG_PRIVATE_KEY: '${{ secrets.GPG_PRIVATE_KEY }}' |
40 | | - DOCKER_LOGIN: '${{ secrets.DOCKER_LOGIN }}' |
41 | | - |
42 | | - - name: Copy min build assets tarball to S3 |
43 | | - run: | |
44 | | - # Upload tarball for each profile by specifying their OUTPUT_TAR path |
45 | | - aws s3 cp offline/min-build/output/assets.tgz s3://public.wire.com/artifacts/wire-server-deploy-static-min-${{ steps.upload_name.outputs.UPLOAD_NAME }}.tgz |
46 | | - echo "Uploaded to: https://s3-$AWS_REGION.amazonaws.com/public.wire.com/artifacts/wire-server-deploy-static-min-${{ steps.upload_name.outputs.UPLOAD_NAME }}.tgz" |
47 | | - # remove the archives from the build to optimize the space on the server |
48 | | - rm -rf offline/min-build/output/* |
49 | | - env: |
50 | | - AWS_ACCESS_KEY_ID: '${{ secrets.AWS_ACCESS_KEY_ID }}' |
51 | | - AWS_SECRET_ACCESS_KEY: '${{ secrets.AWS_SECRET_ACCESS_KEY }}' |
52 | | - AWS_REGION: "eu-west-1" |
53 | | - |
54 | 35 | # deafult profile build |
55 | 36 | - name: Process the default profile build |
56 | 37 | run: ./offline/default-build/build.sh |
|
64 | 45 | aws s3 cp offline/default-build/output/assets.tgz s3://public.wire.com/artifacts/wire-server-deploy-static-${{ steps.upload_name.outputs.UPLOAD_NAME }}.tgz |
65 | 46 | echo "Uploaded to: https://s3-$AWS_REGION.amazonaws.com/public.wire.com/artifacts/wire-server-deploy-static-${{ steps.upload_name.outputs.UPLOAD_NAME }}.tgz" |
66 | 47 | # remove the archives from the build to optimize the space on the server |
67 | | - rm offline/default-build/output/containers-helm.tar |
68 | | - env: |
69 | | - AWS_ACCESS_KEY_ID: '${{ secrets.AWS_ACCESS_KEY_ID }}' |
70 | | - AWS_SECRET_ACCESS_KEY: '${{ secrets.AWS_SECRET_ACCESS_KEY }}' |
71 | | - AWS_REGION: "eu-west-1" |
72 | | - |
73 | | - # demo profile build |
74 | | - - name: Process the demo profile build |
75 | | - run: ./offline/demo-build/build.sh |
76 | | - env: |
77 | | - GPG_PRIVATE_KEY: '${{ secrets.GPG_PRIVATE_KEY }}' |
78 | | - DOCKER_LOGIN: '${{ secrets.DOCKER_LOGIN }}' |
79 | | - |
80 | | - - name: Copy demo build assets tarball to S3 and clean up |
81 | | - run: | |
82 | | - # Upload tarball for each profile by specifying their OUTPUT_TAR path |
83 | | - aws s3 cp offline/demo-build/output/assets.tgz s3://public.wire.com/artifacts/wire-server-deploy-static-demo-${{ steps.upload_name.outputs.UPLOAD_NAME }}.tgz |
84 | | - echo "Uploaded to: https://s3-$AWS_REGION.amazonaws.com/public.wire.com/artifacts/wire-server-deploy-static-demo-${{ steps.upload_name.outputs.UPLOAD_NAME }}.tgz" |
85 | | - # remove the assets from the build to optimize the space on the server |
86 | | - rm -rf offline/demo-build/output/* |
87 | | - # removing everything except assets.tgz as it is not required anymore in the further builds |
88 | | - find offline/default-build/output/ -mindepth 1 -maxdepth 1 ! -name 'assets.tgz' -exec rm -r {} + |
| 48 | + # rm offline/default-build/output/containers-helm.tar |
89 | 49 | env: |
90 | 50 | AWS_ACCESS_KEY_ID: '${{ secrets.AWS_ACCESS_KEY_ID }}' |
91 | 51 | AWS_SECRET_ACCESS_KEY: '${{ secrets.AWS_SECRET_ACCESS_KEY }}' |
|
0 commit comments