update dependencies #135
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: Commit Tests | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
code-quality: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v1 | |
- name: Terraform Format | |
id: fmt | |
run: terraform fmt -check | |
deploy_private_cloud: | |
runs-on: [self-hosted, linux] | |
needs: code-quality | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
- uses: outscale-dev/frieza-github-actions/frieza-clean@master | |
with: | |
access_key: ${{ secrets.OSC_ACCESS_KEY }} | |
secret_key: ${{ secrets.OSC_SECRET_KEY }} | |
region: ${{ secrets.OSC_REGION }} | |
- name: Deploy Cluster | |
uses: ./github_actions/deploy_cluster | |
with: | |
repository_folder: "./" | |
osc_access_key: ${{ secrets.OSC_ACCESS_KEY }} | |
osc_secret_key: ${{ secrets.OSC_SECRET_KEY }} | |
osc_region: ${{ secrets.OSC_REGION }} | |
image_id: ${{ secrets.OMI_ID }} | |
- name: Destroy Cluster | |
uses: ./github_actions/destroy_cluster | |
if: ${{ always() }} | |
with: | |
repository_folder: "./" | |
osc_access_key: ${{ secrets.OSC_ACCESS_KEY }} | |
osc_secret_key: ${{ secrets.OSC_SECRET_KEY }} | |
osc_region: ${{ secrets.OSC_REGION }} | |
deploy_public_cloud: | |
runs-on: [self-hosted, linux] | |
needs: [code-quality, deploy_private_cloud] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
- uses: outscale-dev/frieza-github-actions/frieza-clean@master | |
with: | |
access_key: ${{ secrets.OSC_ACCESS_KEY }} | |
secret_key: ${{ secrets.OSC_SECRET_KEY }} | |
region: ${{ secrets.OSC_REGION }} | |
- name: Deploy Cluster | |
uses: ./github_actions/deploy_cluster | |
with: | |
repository_folder: "./" | |
osc_access_key: ${{ secrets.OSC_ACCESS_KEY }} | |
osc_secret_key: ${{ secrets.OSC_SECRET_KEY }} | |
osc_region: ${{ secrets.OSC_REGION }} | |
image_id: ${{ secrets.OMI_ID }} | |
public_cloud: true | |
- name: Destroy Cluster | |
uses: ./github_actions/destroy_cluster | |
if: ${{ always() }} | |
with: | |
repository_folder: "./" | |
osc_access_key: ${{ secrets.OSC_ACCESS_KEY }} | |
osc_secret_key: ${{ secrets.OSC_SECRET_KEY }} | |
osc_region: ${{ secrets.OSC_REGION }} |