mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-09 00:33:28 -04:00
Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
This commit is contained in:
parent
80d8b45fb3
commit
e6c710aef4
9 changed files with 23 additions and 23 deletions
6
.github/actions/build-vault/action.yml
vendored
6
.github/actions/build-vault/action.yml
vendored
|
|
@ -218,7 +218,7 @@ runs:
|
|||
BUNDLE_PATH: out/${{ steps.metadata.outputs.artifact-basename }}.zip
|
||||
shell: bash
|
||||
run: make ci-bundle
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||
with:
|
||||
name: ${{ steps.metadata.outputs.artifact-basename }}.zip
|
||||
path: out/${{ steps.metadata.outputs.artifact-basename }}.zip
|
||||
|
|
@ -250,13 +250,13 @@ runs:
|
|||
echo "deb-files=$(basename out/*.deb)"
|
||||
} | tee -a "$GITHUB_OUTPUT"
|
||||
- if: inputs.create-packages == 'true'
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||
with:
|
||||
name: ${{ steps.package-files.outputs.rpm-files }}
|
||||
path: out/${{ steps.package-files.outputs.rpm-files }}
|
||||
if-no-files-found: error
|
||||
- if: inputs.create-packages == 'true'
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||
with:
|
||||
name: ${{ steps.package-files.outputs.deb-files }}
|
||||
path: out/${{ steps.package-files.outputs.deb-files }}
|
||||
|
|
|
|||
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -223,7 +223,7 @@ jobs:
|
|||
key: ui-${{ steps.ui-hash.outputs.ui-hash }}
|
||||
- if: steps.cache-ui-assets.outputs.cache-hit != 'true'
|
||||
name: Set up node and yarn
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||
with:
|
||||
node-version-file: ui/package.json
|
||||
cache: yarn
|
||||
|
|
@ -517,7 +517,7 @@ jobs:
|
|||
with:
|
||||
version: ${{ needs.setup.outputs.vault-version-metadata }}
|
||||
product: ${{ needs.setup.outputs.vault-binary-name }}
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||
if: steps.generate-metadata-file.outcome == 'success' # upload our metadata if we created it
|
||||
with:
|
||||
name: metadata.json
|
||||
|
|
|
|||
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
|
@ -272,12 +272,12 @@ jobs:
|
|||
with:
|
||||
github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||
# Setup node.js without caching to allow running npm install -g yarn (next step)
|
||||
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||
with:
|
||||
node-version-file: './ui/package.json'
|
||||
- run: npm install -g yarn
|
||||
# Setup node.js with caching using the yarn.lock file
|
||||
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||
with:
|
||||
node-version-file: './ui/package.json'
|
||||
cache: yarn
|
||||
|
|
@ -332,7 +332,7 @@ jobs:
|
|||
mkdir -p test-results/qunit
|
||||
yarn ${{ needs.setup.outputs.is-ent-branch == 'true' && 'test' || 'test:oss' }}
|
||||
- if: always()
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||
with:
|
||||
name: test-results-ui
|
||||
path: ui/test-results
|
||||
|
|
@ -479,7 +479,7 @@ jobs:
|
|||
# to secrets.
|
||||
- if: ${{ needs.setup.outputs.is-fork == 'false' }}
|
||||
name: Download failure summaries
|
||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
with:
|
||||
pattern: failure-summary-*.md
|
||||
path: failure-summaries
|
||||
|
|
|
|||
2
.github/workflows/test-enos-scenario-ui.yml
vendored
2
.github/workflows/test-enos-scenario-ui.yml
vendored
|
|
@ -88,7 +88,7 @@ jobs:
|
|||
- name: Set Up Git
|
||||
run: git config --global url."https://${{ secrets.elevated_github_token }}:@github.com".insteadOf "https://github.com"
|
||||
- name: Set Up Node
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||
with:
|
||||
node-version-file: './ui/package.json'
|
||||
- name: Set Up Terraform
|
||||
|
|
|
|||
12
.github/workflows/test-go.yml
vendored
12
.github/workflows/test-go.yml
vendored
|
|
@ -469,14 +469,14 @@ jobs:
|
|||
tar -cvf '${{ steps.metadata.outputs.go-test-log-archive-name }}' -C "${{ steps.metadata.outputs.go-test-log-dir }}" .
|
||||
- if: success() || failure()
|
||||
name: Upload test logs archives
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||
with:
|
||||
name: ${{ steps.metadata.outputs.go-test-log-archive-name }}
|
||||
path: ${{ steps.metadata.outputs.go-test-log-archive-name }}
|
||||
retention-days: 7
|
||||
- if: success() || failure()
|
||||
name: Upload test results
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||
with:
|
||||
name: ${{ steps.metadata.outputs.go-test-results-upload-key }}
|
||||
path: |
|
||||
|
|
@ -514,7 +514,7 @@ jobs:
|
|||
echo "data-race-result=${result}" | tee -a "$GITHUB_OUTPUT"
|
||||
- if: (success() || failure()) && steps.data-race-check.outputs.data-race-result == 'failure'
|
||||
name: Upload data race detector failure log
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||
with:
|
||||
name: ${{ steps.metadata.outputs.data-race-log-upload-key }}
|
||||
path: ${{ steps.metadata.outputs.go-test-dir }}/${{ steps.metadata.outputs.data-race-log-file }}
|
||||
|
|
@ -588,7 +588,7 @@ jobs:
|
|||
>> '${{ steps.metadata.outputs.failure-summary-file-name }}'
|
||||
- if: success() || failure()
|
||||
name: Upload failure summary
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||
with:
|
||||
name: ${{ steps.metadata.outputs.failure-summary-file-name }}
|
||||
path: ${{ steps.metadata.outputs.failure-summary-file-name }}
|
||||
|
|
@ -605,7 +605,7 @@ jobs:
|
|||
data-race-output: ${{ steps.status.outputs.data-race-output }}
|
||||
data-race-result: ${{ steps.status.outputs.data-race-result }}
|
||||
steps:
|
||||
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
||||
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
with:
|
||||
pattern: ${{ needs.test-go.outputs.data-race-log-download-pattern }}
|
||||
path: data-race-logs
|
||||
|
|
@ -655,7 +655,7 @@ jobs:
|
|||
${{ inputs.test-timing-cache-key }}-
|
||||
go-test-timing-
|
||||
- if: ${{ ! cancelled() && needs.test-go.result == 'success' && inputs.test-timing-cache-save }}
|
||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
with:
|
||||
path: ${{ needs.test-matrix.outputs.go-test-dir }}
|
||||
pattern: ${{ needs.test-go.outputs.go-test-results-download-pattern }}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
with:
|
||||
github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||
- run: go test -v ./${{ inputs.path }}/... 2>&1 | tee ${{ inputs.name }}.txt
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||
with:
|
||||
name: ${{ inputs.name }}-output
|
||||
path: ${{ inputs.name }}.txt
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ jobs:
|
|||
github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||
- name: Download Docker Image
|
||||
id: download
|
||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
with:
|
||||
name: ${{ inputs.build-artifact-name }}
|
||||
path: ./enos/support/downloads
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ jobs:
|
|||
du -h "./enos/support/private_key.pem"
|
||||
echo "debug_data_artifact_name=enos-debug-data_$(echo "${{ matrix.scenario }}" | sed -e 's/ /_/g' | sed -e 's/:/=/g')" >> "$GITHUB_OUTPUT"
|
||||
- if: contains(inputs.sample-name, 'build')
|
||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
with:
|
||||
name: ${{ inputs.build-artifact-name }}
|
||||
path: ./enos/support/downloads
|
||||
|
|
@ -258,7 +258,7 @@ jobs:
|
|||
run: enos scenario launch --timeout 45m0s --chdir ./enos ${{ matrix.scenario.id.filter }}
|
||||
- name: Upload Debug Data
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||
with:
|
||||
# The name of the artifact is the same as the matrix scenario name with the spaces replaced with underscores and colons replaced by equals.
|
||||
name: ${{ steps.prepare_scenario.outputs.debug_data_artifact_name }}
|
||||
|
|
|
|||
6
.github/workflows/test-run-enos-scenario.yml
vendored
6
.github/workflows/test-run-enos-scenario.yml
vendored
|
|
@ -67,7 +67,7 @@ jobs:
|
|||
- name: Configure Git
|
||||
run: git config --global url."https://${{ secrets.ELEVATED_GITHUB_TOKEN }}:@github.com".insteadOf "https://github.com"
|
||||
- name: Set up node
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||
with:
|
||||
node-version: 14
|
||||
cache-dependency-path: ui/yarn.lock
|
||||
|
|
@ -108,13 +108,13 @@ jobs:
|
|||
run: |
|
||||
bash -x ./scripts/gha_enos_logs.sh "${{ steps.scenario-deps.outputs.logsdir }}" "${{ inputs.scenario }}" "${{ inputs.distro }}" "${{ inputs.artifact-type }}" 2>/dev/null
|
||||
find "${{ steps.scenario-deps.outputs.logsdir }}" -maxdepth 0 -empty -exec rmdir {} \;
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: enos-scenario-logs
|
||||
path: ${{ steps.scenario-deps.outputs.logsdir }}
|
||||
retention-days: 1
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: enos-debug-data-logs
|
||||
|
|
|
|||
Loading…
Reference in a new issue