Skip to content

Commit

Permalink
ci: disable upload latest action runner package to S3
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywang committed Oct 11, 2023
1 parent a1bc53a commit 2edc55c
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/upload-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,40 @@ on:
- cron: '0 4 * * *'

jobs:
upload-binary_prod:
# 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
# upload-binary_prod:
# # 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
# # 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 x86_64 action-runner
run: ansible-playbook -v -e ansible_python_interpreter=/usr/bin/python3 -e github_actions_architecture=x64 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_PROD }}
# # 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 x86_64 action-runner
# run: ansible-playbook -v -e ansible_python_interpreter=/usr/bin/python3 -e github_actions_architecture=x64 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_PROD }}

- name: Run Ansible playbook to upload arm64 action-runner
run: ansible-playbook -v -e ansible_python_interpreter=/usr/bin/python3 -e github_actions_architecture=arm64 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_PROD }}
# - name: Run Ansible playbook to upload arm64 action-runner
# run: ansible-playbook -v -e ansible_python_interpreter=/usr/bin/python3 -e github_actions_architecture=arm64 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_PROD }}

upload-binary_dev:
# Do not run this job on any fork repos
Expand Down

0 comments on commit 2edc55c

Please sign in to comment.