Install and configure python #624
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Repository Code Sync | |
on: | |
push: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
branches: | |
- 'main' | |
jobs: | |
sync-installers: | |
# Disable bidirectional sync | |
if: false # github.repository == 'hashicorp/vagrant-builders' | |
runs-on: ['self-hosted', 'ondemand', 'linux', 'type=t3.small'] | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Authentication | |
id: vault-auth | |
run: vault-auth | |
- name: Secrets | |
id: secrets | |
uses: hashicorp/vault-action@v2 | |
with: | |
url: ${{ steps.vault-auth.outputs.addr }} | |
caCertificate: ${{ steps.vault-auth.outputs.ca_certificate }} | |
token: ${{ steps.vault-auth.outputs.token }} | |
secrets: | |
kv/data/teams/vagrant/slack webhook | slack_webhook; | |
kv/data/teams/vagrant/hashibot token | hashibot_token; | |
kv/data/teams/vagrant/hashibot username | hashibot_username; | |
- name: Code Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Sync Installers Repository | |
run: ./.ci/sync.sh | |
working-directory: ${{github.workspace}} | |
env: | |
HASHIBOT_TOKEN: ${{ steps.secrets.outputs.hashibot_token }} | |
HASHIBOT_USERNAME: ${{ steps.secrets.outputs.hashibot_username }} | |
SLACK_WEBHOOK: ${{ steps.secrets.outputs.slack_webhook }} | |
sync-builders: | |
if: github.repository == 'hashicorp/vagrant-installers' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Sync Builders Repository | |
run: ./.ci/sync.sh | |
working-directory: ${{github.workspace}} | |
env: | |
HASHIBOT_TOKEN: ${{ secrets.HASHIBOT_TOKEN }} | |
HASHIBOT_USERNAME: ${{ vars.HASHIBOT_USERNAME }} | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |