mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-10-12 02:20:34 -04:00
Rename coordinator to bootstrapper and rename roles
This commit is contained in:
parent
3280ed200c
commit
916e5d6b55
191 changed files with 1763 additions and 2030 deletions
28
.github/workflows/build-coordinator.yml
vendored
28
.github/workflows/build-coordinator.yml
vendored
|
@ -1,5 +1,5 @@
|
|||
# We build the coordinator as part of each PR to see that the build still works. An image is only created once merged to main (see condition on call-coreos).
|
||||
name: Build and Upload the Coordinator
|
||||
name: Build and Upload the bootstrapper
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
@ -14,15 +14,15 @@ concurrency:
|
|||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build-coordinator:
|
||||
name: "Build the Coordinator"
|
||||
build-bootstrapper:
|
||||
name: "Build the bootstrapper"
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
|
||||
outputs:
|
||||
coordinator-name: ${{ steps.copy.outputs.coordinator-name }}
|
||||
bootstrapper-name: ${{ steps.copy.outputs.bootstrapper-name }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
id: checkout
|
||||
|
@ -35,32 +35,32 @@ jobs:
|
|||
id: prepare
|
||||
run: sudo apt-get update && sudo apt-get -y install awscli cmake make
|
||||
|
||||
- name: Build and tag the Coordinator
|
||||
- name: Build and tag the bootstrapper
|
||||
id: build
|
||||
run: |
|
||||
mkdir build && cd build
|
||||
cmake ..
|
||||
make coordinator
|
||||
mv coordinator coordinator-$(sha512sum coordinator | cut -d " " -f 1)
|
||||
make bootstrapper
|
||||
mv bootstrapper bootstrapper-$(sha512sum bootstrapper | cut -d " " -f 1)
|
||||
|
||||
- name: Copy Coordinator to S3 if not exists
|
||||
- name: Copy bootstrapper to S3 if not exists
|
||||
id: copy
|
||||
# Only upload the Coordinator if this action is triggered from main branch
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
run: >
|
||||
aws s3api head-object --bucket ${{ secrets.PUBLIC_BUCKET_NAME }} --key coordinator/$(ls | grep "coordinator-")
|
||||
aws s3api head-object --bucket ${{ secrets.PUBLIC_BUCKET_NAME }} --key bootstrapper/$(ls | grep "bootstrapper-")
|
||||
|| (
|
||||
echo "::set-output name=coordinator-name::$(ls | grep "coordinator-")"
|
||||
&& aws s3 cp ${{ github.workspace }}/build/ s3://${{ secrets.PUBLIC_BUCKET_NAME }}/coordinator/ --exclude "*" --include "coordinator-*" --include "constellation" --recursive --quiet)
|
||||
echo "::set-output name=bootstrapper-name::$(ls | grep "bootstrapper-")"
|
||||
&& aws s3 cp ${{ github.workspace }}/build/ s3://${{ secrets.PUBLIC_BUCKET_NAME }}/bootstrapper/ --exclude "*" --include "bootstrapper-*" --include "constellation" --recursive --quiet)
|
||||
shell: bash {0}
|
||||
working-directory: ${{ github.workspace }}/build/
|
||||
|
||||
call-coreos:
|
||||
needs: build-coordinator
|
||||
if: ${{ (github.ref == 'refs/heads/main') && startsWith(needs.build-coordinator.outputs.coordinator-name, 'coordinator-') }}
|
||||
needs: build-bootstrapper
|
||||
if: ${{ (github.ref == 'refs/heads/main') && startsWith(needs.build-bootstrapper.outputs.bootstrapper-name, 'bootstrapper-')
|
||||
uses: ./.github/workflows/build-coreos.yml
|
||||
with:
|
||||
coordinator-name: ${{ needs.build-coordinator.outputs.coordinator-name }}
|
||||
bootstrapper-name: ${{ needs.build-bootstrapper.outputs.bootstrapper-name }}
|
||||
secrets:
|
||||
CI_GITHUB_REPOSITORY: ${{ secrets.CI_GITHUB_REPOSITORY }}
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
|
|
2
.github/workflows/build-coreos-debug.yml
vendored
2
.github/workflows/build-coreos-debug.yml
vendored
|
@ -80,6 +80,6 @@ jobs:
|
|||
- name: "Build and Upload"
|
||||
run: >
|
||||
make -j$(nproc) CONTAINER_ENGINE=docker NETRC=/tmp/.netrc GCP_IMAGE_NAME="${{ env.IMAGE_TIMESTAMP }}" GCP_IMAGE_FAMILY="constellation-debug" AZURE_IMAGE_NAME="${{ env.IMAGE_TIMESTAMP }}"
|
||||
AZURE_IMAGE_DEFINITION="constellation-coreos-debugd" AZURE_IMAGE_VERSION="${{env.IMAGE_VERSION }}" DOWNLOAD_COORDINATOR=n COORDINATOR_BINARY="${{ github.workspace }}/debugd/debugd/cmd/debugd/constellation-debugd"
|
||||
AZURE_IMAGE_DEFINITION="constellation-coreos-debugd" AZURE_IMAGE_VERSION="${{env.IMAGE_VERSION }}" DOWNLOAD_BOOTSTRAPPER=n BOOTSTRAPPER_BINARY="${{ github.workspace }}/debugd/debugd/cmd/debugd/constellation-debugd"
|
||||
image-gcp image-azure upload-gcp upload-azure
|
||||
working-directory: ${{ env.working-directory }}
|
||||
|
|
8
.github/workflows/build-coreos.yml
vendored
8
.github/workflows/build-coreos.yml
vendored
|
@ -5,14 +5,14 @@ env:
|
|||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
coordinator-name:
|
||||
description: Coordinator name
|
||||
bootstrapper-name:
|
||||
description: bootstrapper name
|
||||
required: true
|
||||
type: string
|
||||
|
||||
workflow_call:
|
||||
inputs:
|
||||
coordinator-name:
|
||||
bootstrapper-name:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
|
@ -101,6 +101,6 @@ jobs:
|
|||
- name: "Build and Upload"
|
||||
run: >
|
||||
make -j$(nproc) CONTAINER_ENGINE=docker NETRC=/tmp/.netrc GCP_IMAGE_NAME="${{ env.IMAGE_TIMESTAMP }}" AZURE_IMAGE_NAME="${{ env.IMAGE_TIMESTAMP }}"
|
||||
AZURE_IMAGE_DEFINITION="constellation-coreos" AZURE_IMAGE_VERSION="${{env.IMAGE_VERSION }}" DOWNLOAD_COORDINATOR=y COORDINATOR_URL="https://${{ secrets.PUBLIC_BUCKET_NAME }}.s3.us-east-2.amazonaws.com/coordinator/${{ inputs.coordinator-name }}"
|
||||
AZURE_IMAGE_DEFINITION="constellation-coreos" AZURE_IMAGE_VERSION="${{env.IMAGE_VERSION }}" DOWNLOAD_BOOTSTRAPPER=y BOOTSTRAPPER_URL="https://${{ secrets.PUBLIC_BUCKET_NAME }}.s3.us-east-2.amazonaws.com/bootstrapper/${{ inputs.bootstrapper-name }}"
|
||||
image-gcp image-azure upload-gcp upload-azure
|
||||
working-directory: ${{ env.working-directory }}
|
||||
|
|
27
.github/workflows/test-integration-etcdStore.yml
vendored
27
.github/workflows/test-integration-etcdStore.yml
vendored
|
@ -1,27 +0,0 @@
|
|||
name: Etcd Integration Test
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
# Abort runs of *this* workflow, if a new commit with the same ref is pushed.
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
integration-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Go environment
|
||||
uses: actions/setup-go@v2.1.4
|
||||
with:
|
||||
go-version: "1.18"
|
||||
|
||||
- name: Test Constellation etcd integration
|
||||
run: go test -v --race -cover -count=3 -tags integration
|
||||
working-directory: coordinator/store
|
6
.github/workflows/test-integration.yml
vendored
6
.github/workflows/test-integration.yml
vendored
|
@ -34,9 +34,3 @@ jobs:
|
|||
# Runs all test targets starting with "integration-"
|
||||
- name: Integration Tests
|
||||
run: ctest -R integration-
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: failure()
|
||||
with:
|
||||
name: coordinator-integrationtest-logs
|
||||
path: /tmp/coordinator/logs/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue