Skip to content

Commit

Permalink
ci: remove un-used bucket for runner binary upload
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywang committed Aug 15, 2023
1 parent 110bff4 commit d164c5f
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/upload-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,6 @@ on:
- cron: '0 4 * * *'

jobs:
upload-binary:
# Do not run this job on any fork repos
if: github.repository == 'virt-s1/kite-action'
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3

# Ansible has been installed already in github action runner by default
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md#tools
- name: Install Ansible modules and dependence
run: |
ansible-galaxy collection install amazon.aws
pip install botocore boto3
# Use system default python3 as ansible python interpreter
# By default ansible use /opt/pipx/venvs/ansible-core/bin/python as its python interpreter
- name: Run Ansible playbook to upload action-runner
run: ansible-playbook -v -e ansible_python_interpreter=/usr/bin/python3 tools/upload_runner_binary.yaml
env:
PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}

upload-binary_prod:
# Do not run this job on any fork repos
if: github.repository == 'virt-s1/kite-action'
Expand Down

0 comments on commit d164c5f

Please sign in to comment.