Make stuff work with HCP #35
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
# Copyright (c) HashiCorp, Inc. | |
# SPDX-License-Identifier: MPL-2.0 | |
name: Nighly ECS example validator | |
on: | |
# schedule: | |
# - cron: '0 0 * * *' # Runs every day at midnight UTC | |
workflow_dispatch: | |
push: | |
jobs: | |
single-cluster: | |
strategy: | |
matrix: | |
name: | |
# - Consul ECS on Fargate | |
# - Consul ECS on EC2 | |
- Admin partitions | |
include: | |
# - name: Consul ECS on Fargate | |
# region: us-east-1 | |
# working-directory: ./examples/dev-server-fargate | |
# variables: '{\"lb_ingress_ip\": \"eval curl -s ifconfig.me\", \"name\": \"ecs-ywxt\"}' | |
# - name: Consul ECS on EC2 | |
# region: us-east-2 | |
# working-directory: ./examples/dev-server-ec2 | |
# variables: '{\"lb_ingress_ip\": \"eval curl -s ifconfig.me\", \"name\": \"ecs-rtya\"}' | |
- name: Admin partitions | |
region: us-west-2 | |
working-directory: ./examples/admin-partitions/terraform | |
pass-hcp-project-id: true | |
fail-fast: false | |
uses: ./.github/workflows/reusable-ecs-example-validator.yml | |
with: | |
name: ${{ matrix.name }} | |
region: ${{ matrix.region }} | |
working-directory: ${{ matrix.working-directory }} | |
#variables: ${{ matrix.variables }} | |
pass-hcp-project-id: ${{ matrix.pass-hcp-project-id }} | |
secrets: inherit | |
multi-cluster: | |
needs: | |
- single-cluster | |
strategy: | |
matrix: | |
name: | |
- Mesh gateways | |
- Cluster peering | |
include: | |
- name: Mesh gateways | |
region: us-east-1 | |
working-directory: ./examples/mesh-gateways | |
variables: '{\"lb_ingress_ip\": \"eval curl -s ifconfig.me\", \"name\": \"ecs-oprb\"}' | |
- name: Cluster peering | |
region: us-east-2 | |
working-directory: ./examples/cluster-peering | |
variables: '{\"lb_ingress_ip\": \"eval curl -s ifconfig.me\", \"name\": \"ecs-oerc\"}' | |
fail-fast: false | |
uses: ./.github/workflows/reusable-ecs-example-validator.yml | |
with: | |
name: ${{ matrix.name }} | |
region: ${{ matrix.region }} | |
working-directory: ${{ matrix.working-directory }} | |
variables: ${{ matrix.variables }} | |
secrets: inherit |