-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into gh-18152-members-filter-dc
- Loading branch information
Showing
79 changed files
with
15,942 additions
and
122 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:improvement | ||
Windows: Integration tests for Consul Windows VMs | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:improvement | ||
hcp: Removes requirement for HCP to provide a management token | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
# | ||
# This script generates tag-sets that can be used as runs-on: values to select runners. | ||
|
||
set -euo pipefail | ||
|
||
case "$GITHUB_REPOSITORY" in | ||
*-enterprise) | ||
# shellcheck disable=SC2129 | ||
echo "compute-small=['self-hosted', 'windows', 'small']" >> "$GITHUB_OUTPUT" | ||
echo "compute-medium=['self-hosted', 'windows', 'medium']" >> "$GITHUB_OUTPUT" | ||
echo "compute-large=['self-hosted', 'windows', 'large']" >> "$GITHUB_OUTPUT" | ||
# m5d.8xlarge is equivalent to our xl custom runner in OSS | ||
echo "compute-xl=['self-hosted', 'ondemand', 'windows', 'type=m5d.8xlarge']" >> "$GITHUB_OUTPUT" | ||
;; | ||
*) | ||
# shellcheck disable=SC2129 | ||
echo "compute-small=['windows-2019']" >> "$GITHUB_OUTPUT" | ||
echo "compute-medium=['windows-2019']" >> "$GITHUB_OUTPUT" | ||
echo "compute-large=['windows-2019']" >> "$GITHUB_OUTPUT" | ||
echo "compute-xl=['windows-2019']" >> "$GITHUB_OUTPUT" | ||
;; | ||
esac |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: reusable-dev-build-windows | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
uploaded-binary-name: | ||
required: false | ||
type: string | ||
default: "consul.exe" | ||
runs-on: | ||
description: An expression indicating which kind of runners to use. | ||
required: true | ||
type: string | ||
repository-name: | ||
required: true | ||
type: string | ||
go-arch: | ||
required: false | ||
type: string | ||
default: "" | ||
secrets: | ||
elevated-github-token: | ||
required: true | ||
jobs: | ||
build: | ||
runs-on: 'windows-2019' | ||
steps: | ||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | ||
# NOTE: This step is specifically needed for ENT. It allows us to access the required private HashiCorp repos. | ||
- name: Setup Git | ||
if: ${{ endsWith(inputs.repository-name, '-enterprise') }} | ||
run: git config --global url."https://${{ secrets.elevated-github-token }}:@github.com".insteadOf "https://github.com" | ||
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 | ||
with: | ||
go-version-file: 'go.mod' | ||
- name: Build | ||
env: | ||
GOARCH: ${{ inputs.goarch }} | ||
run: go build . | ||
# save dev build to pass to downstream jobs | ||
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 | ||
with: | ||
name: ${{inputs.uploaded-binary-name}} | ||
path: consul.exe | ||
- name: Notify Slack | ||
if: ${{ failure() }} | ||
run: .github/scripts/notify_slack.sh |
Oops, something went wrong.