This commit is contained in:
parent
4b6fcb8872
commit
b1db27b929
@ -11,24 +11,26 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install awscli
|
||||
- name: Install AwsCli
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y awscli
|
||||
|
||||
- name: AwsCli coigure
|
||||
run: |
|
||||
aws configure set aws_access_key_id MzWljuOGskoOq6zXPsbw
|
||||
aws configure set aws_secret_access_key Ivsw2b0dZMvPYXGrPIQXwjwXNdChIRVAJslcn2DS
|
||||
aws configure set default.region us-east-1
|
||||
aws configure set aws_access_key_id ${{ secrets.AWS_ID }}
|
||||
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET }}
|
||||
aws configure set default.region ${{ secrets.AWS_REGION }}
|
||||
|
||||
- name: Upload to s3
|
||||
- name: Upload to s3 release
|
||||
run: |
|
||||
aws --endpoint-url=http://78.40.188.97:9000 s3 cp ./install_agent.sh s3://release
|
||||
TAG="${{ github.ref/refs\/tags\// }}"
|
||||
aws --endpoint-url=http://${{ secrets.AWS_HOST }}s3 cp ./install_agent_$TAG.sh s3://release
|
||||
|
||||
- name: Create version file
|
||||
- name: Update version release
|
||||
run: |
|
||||
echo "${{ github.ref }}" > version.txt
|
||||
aws --endpoint-url=http://78.40.188.97:9000 s3 cp ./version.txt s3://doc
|
||||
TAG="${{ github.ref/refs\/tags\// }}"
|
||||
echo "$TAG" > version_install_agent.txt
|
||||
aws --endpoint-url=http://${{ secrets.AWS_HOST }} s3 cp ./version.txt s3://doc
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user