forked from chaos-mesh/chaos-mesh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix upload install scripts and crd files workflows (chaos-mesh#806)
* remove_paths Signed-off-by: cwen0 <[email protected]> * upload more files Signed-off-by: cwen0 <[email protected]> * use awscli instead of cloud-assets-utils Signed-off-by: cwen0 <[email protected]>
- Loading branch information
Showing
3 changed files
with
36 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Upload chaos mesh crd | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
jobs: | ||
run: | ||
name: Upload crd file | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
# Must use at least depth 2! | ||
fetch-depth: 2 | ||
- name: Configure awscli | ||
run: | | ||
pip3 install --upgrade setuptools | ||
pip3 install awscli | ||
printf "%s\n" ${{ secrets.AWS_ACCESS_KEY }} ${{ secrets.AWS_SECRET_KEY }} ${{ secrets.AWS_REGION }} "json" | aws configure | ||
- name: Upload crd file | ||
run: | | ||
GIT_TAG=${GITHUB_REF##*/} | ||
if [[ "$GIT_TAG" == "master" ]]; then | ||
GIT_TAG="latest" | ||
fi | ||
aws s3 cp install.sh ${{ secrets.AWS_BUCKET_NAME }}/${GIT_TAG}/install.sh | ||
aws s3 cp manifests/crd.yaml ${{ secrets.AWS_BUCKET_NAME }}/${GIT_TAG}/crd.yaml | ||
aws s3 cp examples/web-show/deploy.sh ${{ secrets.AWS_BUCKET_NAME }}/${GIT_TAG}/web-show/deploy.sh | ||
# TODO: delete it | ||
aws s3 cp manifests/chaosfs-sidecar.yaml ${{ secrets.AWS_BUCKET_NAME }}/${GIT_TAG}/chaosfs-sidecar.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.