This commit is contained in:
parent
3b7c0f33a7
commit
e1e9e7f7a0
@ -24,16 +24,17 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload to s3
|
- name: Upload to s3
|
||||||
run: |
|
run: |
|
||||||
aws --endpoint-url=http://${{ secrets.AWS_HOST }} s3 cp ./install_agent.sh s3://release
|
TAG="${{ github.ref }}"
|
||||||
|
TAG="${TAG#refs/tags/}"
|
||||||
|
TAG="${TAG#v}"
|
||||||
|
|
||||||
|
aws --endpoint-url=http://${{ secrets.AWS_HOST }} s3 cp ./install_agent.sh s3://release/install_agent_$TAG.sh
|
||||||
|
|
||||||
- name: Create version file
|
- name: Create version file
|
||||||
run: |
|
run: |
|
||||||
TAG="${{ github.ref }}"
|
TAG="${{ github.ref }}"
|
||||||
echo "$TAG"
|
|
||||||
TAG="${TAG#refs/tags/}"
|
TAG="${TAG#refs/tags/}"
|
||||||
echo "$TAG"
|
|
||||||
TAG="${TAG#v}"
|
TAG="${TAG#v}"
|
||||||
echo "$TAG"
|
|
||||||
echo "$TAG" > versionagent.txt
|
echo "$TAG" > versionagent.txt
|
||||||
aws --endpoint-url=http://${{ secrets.AWS_HOST }} s3 cp ./versionagent.txt s3://doc
|
aws --endpoint-url=http://${{ secrets.AWS_HOST }} s3 cp ./versionagent.txt s3://doc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user