|
1 | 1 | name: E2E on HCP Terraform Operator [Helm] |
2 | 2 |
|
| 3 | +# To run this workflow locally, you can use https://github.com/nektos/act. |
| 4 | +# Act is a tool for executing GitHub Actions in your local environment. |
| 5 | + |
| 6 | +# First, export the required secrets as environment variables: |
| 7 | + |
| 8 | +# export TFC_OAUTH_TOKEN=<OAUTH_TOKEN> |
| 9 | +# export TFC_ORG=<ORG_NAME> |
| 10 | +# export TFC_TOKEN=<TOKEN> |
| 11 | +# export TFC_VCS_REPO=<VCS_REPO> |
| 12 | + |
| 13 | + |
| 14 | +# Then execute the workflow with: |
| 15 | + |
| 16 | +# act workflow_dispatch --rm \ |
| 17 | +# --container-architecture linux/arm64 \ |
| 18 | +# -P linux=catthehacker/ubuntu:act-latest \ |
| 19 | +# --var KIND_VERSION=0.30.0 \ |
| 20 | +# --var BIN_NAME=manager \ |
| 21 | +# --env PLATFORMS=arm64 \ |
| 22 | +# -s TFC_OAUTH_TOKEN \ |
| 23 | +# -s TFC_ORG \ |
| 24 | +# -s TFC_TOKEN \ |
| 25 | +# -s TFC_VCS_REPO \ |
| 26 | +# -W .github/workflows/helm-end-to-end-tfc.yaml |
| 27 | + |
3 | 28 | on: |
4 | 29 | schedule: |
5 | 30 | - cron: '30 6 * * 0' |
|
17 | 42 | CLUSTER_NAME: 'this' |
18 | 43 | DOCKER_IMAGE: 'this' |
19 | 44 | KUBECONFIG: ${{ github.workspace }}/.kube/config |
| 45 | + PLATFORMS: 'amd64' |
20 | 46 |
|
21 | 47 | jobs: |
22 | 48 | tests: |
@@ -56,15 +82,15 @@ jobs: |
56 | 82 | - name: Set up QEMU |
57 | 83 | uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0 |
58 | 84 | with: |
59 | | - platforms: amd64 |
| 85 | + platforms: ${{ env.PLATFORMS }} |
60 | 86 |
|
61 | 87 | - name: Set up Docker Buildx |
62 | 88 | uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0 |
63 | 89 |
|
64 | 90 | - name: Build and load Docker image |
65 | 91 | uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0 |
66 | 92 | with: |
67 | | - platforms: linux/amd64 |
| 93 | + platforms: linux/${{ env.PLATFORMS }} |
68 | 94 | load: true |
69 | 95 | build-args: |
70 | 96 | BIN_NAME=${{ vars.BIN_NAME }} |
|
0 commit comments