From 7b89e3ddac5931db97f5ee7c8332186b4490469f Mon Sep 17 00:00:00 2001 From: stirelshka8 Date: Fri, 19 Jul 2024 19:52:48 +0300 Subject: [PATCH] Finish dev CICD --- .gitea/workflows/publish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index a7b1e17..db065dc 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -18,19 +18,19 @@ jobs: - name: AwsCli configure 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 run: | TAG="${{ github.ref/refs\/tags\// }}" - aws --endpoint-url=http://78.40.188.97:9000 s3 cp ./install_agent_$TAG.sh s3://release + aws --endpoint-url=http://${{ secrets.AWS_HOST }} s3 cp ./install_agent.sh s3://release/install_agent_$TAG.sh - name: Create version file run: | TAG="${{ github.ref/refs\/tags\// }}" echo "$TAG" > version_install_agent.txt - aws --endpoint-url=http://78.40.188.97:9000 s3 cp ./version.txt s3://doc + aws --endpoint-url=http://${{ secrets.AWS_HOST }} s3 cp ./version_install_agent.txt s3://doc