Auto_install_Zabbix_Agent/.gitea/workflows/publish.yml
stirelshka8 f5a090309d
All checks were successful
Upload to s3 / build_and_deploy (push) Successful in 1m58s
UPD
2024-07-19 19:43:48 +03:00

37 lines
1001 B
YAML

name: Upload to s3
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install AwsCli
run: |
sudo apt-get update
sudo apt-get install -y awscli
- 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
- 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
- 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