mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-26 07:16:08 -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
|
chmod +x $GITHUB_WORKSPACE/build/cdbg
|
||||||
cdbg deploy \
|
cdbg deploy \
|
||||||
--bootstrapper "${{ github.workspace }}/build/bootstrapper" \
|
--bootstrapper "${{ github.workspace }}/build/bootstrapper" \
|
||||||
|
--upgrade-agent "${{ github.workspace }}/build/upgrade-agent" \
|
||||||
--info logcollect=true \
|
--info logcollect=true \
|
||||||
--info logcollect.github.actor="${{ github.triggering_actor }}" \
|
--info logcollect.github.actor="${{ github.triggering_actor }}" \
|
||||||
--info logcollect.github.workflow="${{ github.workflow }}" \
|
--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'
|
if: inputs.isDebugImage == 'true' && runner.os != 'macOS'
|
||||||
uses: ./.github/actions/build_bootstrapper
|
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
|
- name: Build cdbg
|
||||||
id: build-cdbg
|
id: build-cdbg
|
||||||
if: inputs.isDebugImage == 'true'
|
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]
|
needs: [find-latest-image]
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Go environment
|
- name: Setup Go environment
|
||||||
if: github.event.steps.check-bootstrapper-cache.cache-hit != 'true'
|
|
||||||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
||||||
with:
|
with:
|
||||||
go-version: "1.19.5"
|
go-version: "1.19.5"
|
||||||
|
|
||||||
- name: Checkout head
|
- 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
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
||||||
with:
|
with:
|
||||||
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
||||||
|
|
||||||
- name: Checkout 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
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.git-ref }}
|
ref: ${{ inputs.git-ref }}
|
||||||
|
|
||||||
- name: Build bootstrapper
|
- name: Build bootstrapper
|
||||||
if: github.event.steps.check-bootstrapper-cache.cache-hit != 'true'
|
|
||||||
uses: ./.github/actions/build_bootstrapper
|
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
|
- name: Upload bootstrapper to cache
|
||||||
if: github.event.steps.check-bootstrapper-cache.cache-hit != 'true'
|
|
||||||
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 # v3.2.3
|
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 # v3.2.3
|
||||||
with:
|
with:
|
||||||
key: bootstrapper-${{ github.sha }}
|
key: bootstrapper-${{ github.sha }}
|
||||||
path: "build/bootstrapper"
|
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:
|
e2e-test-manual:
|
||||||
runs-on: ${{ inputs.runner }}
|
runs-on: ${{ inputs.runner }}
|
||||||
permissions:
|
permissions:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user