mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-24 23:19:39 -05:00
ci: prepare upgrade-agent for upload in e2e tests
This commit is contained in:
parent
ce17a0c9ac
commit
ee869eaf9c
@ -165,6 +165,7 @@ runs:
|
||||
chmod +x $GITHUB_WORKSPACE/build/cdbg
|
||||
cdbg deploy \
|
||||
--bootstrapper "${{ github.workspace }}/build/bootstrapper" \
|
||||
--upgrade-agent "${{ github.workspace }}/build/upgrade-agent" \
|
||||
--info logcollect=true \
|
||||
--info logcollect.github.actor="${{ github.triggering_actor }}" \
|
||||
--info logcollect.github.workflow="${{ github.workflow }}" \
|
||||
|
15
.github/actions/e2e_test/action.yml
vendored
15
.github/actions/e2e_test/action.yml
vendored
@ -117,6 +117,21 @@ runs:
|
||||
if: inputs.isDebugImage == 'true' && runner.os != 'macOS'
|
||||
uses: ./.github/actions/build_bootstrapper
|
||||
|
||||
# macOS runners don't have Docker preinstalled, so they cannot build the upgrade-agent.
|
||||
# But we can use a Linux runner to build it and store/retrieve it from the action cache.
|
||||
- name: Download the upgrade-agent from cache
|
||||
id: download-upgrade-agent-cache
|
||||
if: inputs.isDebugImage == 'true' && runner.os == 'macOS'
|
||||
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 # v3.2.3
|
||||
with:
|
||||
key: upgrade-agent-${{ github.sha }}
|
||||
path: "build/upgrade-agent"
|
||||
|
||||
- name: Build the upgrade-agent
|
||||
id: build-upgrade-agent
|
||||
if: inputs.isDebugImage == 'true' && runner.os != 'macOS'
|
||||
uses: ./.github/actions/build_upgrade_agent
|
||||
|
||||
- name: Build cdbg
|
||||
id: build-cdbg
|
||||
if: inputs.isDebugImage == 'true'
|
||||
|
18
.github/workflows/e2e-test-manual.yml
vendored
18
.github/workflows/e2e-test-manual.yml
vendored
@ -189,34 +189,42 @@ jobs:
|
||||
needs: [find-latest-image]
|
||||
steps:
|
||||
- name: Setup Go environment
|
||||
if: github.event.steps.check-bootstrapper-cache.cache-hit != 'true'
|
||||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
||||
with:
|
||||
go-version: "1.19.5"
|
||||
|
||||
- name: Checkout head
|
||||
if: github.event.steps.check-bootstrapper-cache.cache-hit != 'true' && inputs.git-ref == 'head'
|
||||
if: inputs.git-ref == 'head'
|
||||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
||||
with:
|
||||
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
||||
|
||||
- name: Checkout ref
|
||||
if: github.event.steps.check-bootstrapper-cache.cache-hit != 'true' && inputs.git-ref != 'head'
|
||||
if: inputs.git-ref != 'head'
|
||||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
||||
with:
|
||||
ref: ${{ inputs.git-ref }}
|
||||
|
||||
- name: Build bootstrapper
|
||||
if: github.event.steps.check-bootstrapper-cache.cache-hit != 'true'
|
||||
uses: ./.github/actions/build_bootstrapper
|
||||
|
||||
- name: Build upgrade-agent
|
||||
uses: ./.github/actions/build_upgrade_agent
|
||||
with:
|
||||
outputPath: ${{ github.workspace }}/build/upgrade-agent
|
||||
|
||||
- name: Upload bootstrapper to cache
|
||||
if: github.event.steps.check-bootstrapper-cache.cache-hit != 'true'
|
||||
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 # v3.2.3
|
||||
with:
|
||||
key: bootstrapper-${{ github.sha }}
|
||||
path: "build/bootstrapper"
|
||||
|
||||
- name: Upload upgrade-agent to cache
|
||||
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 # v3.2.3
|
||||
with:
|
||||
key: upgrade-agent-${{ github.sha }}
|
||||
path: "build/upgrade-agent"
|
||||
|
||||
e2e-test-manual:
|
||||
runs-on: ${{ inputs.runner }}
|
||||
permissions:
|
||||
|
Loading…
Reference in New Issue
Block a user