From c7a7406edf10bb3fc8f75c2b16cb2faf27220973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miles=20St=C3=B6tzner?= Date: Sat, 6 Jan 2024 22:31:04 +0100 Subject: [PATCH] split --- .../prepare-integration-test/action.yaml | 19 +++------- .github/workflows/night.yaml | 35 ++++++++++++++----- 2 files changed, 31 insertions(+), 23 deletions(-) diff --git a/.github/actions/prepare-integration-test/action.yaml b/.github/actions/prepare-integration-test/action.yaml index 9c37b1b5dc..f07ebf1306 100644 --- a/.github/actions/prepare-integration-test/action.yaml +++ b/.github/actions/prepare-integration-test/action.yaml @@ -1,15 +1,6 @@ name: 'Prepare Integration Test Environment' inputs: - GCP_CREDENTIALS: - required: true - - OS_SSH_KEY_FILE: - required: true - - OS_APPLICATION_CREDENTIAL_ID: - required: true - - OS_APPLICATION_CREDENTIAL_SECRET: + secrets: required: true runs: @@ -42,7 +33,7 @@ runs: echo ${GCP_CREDENTIALS} | base64 --decode > /tmp/gcp-credentials.json env: - GCP_CREDENTIALS: ${{ inputs.GCP_CREDENTIALS }} + GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }} - name: (PREPARE) Setup OS SSH key file shell: bash @@ -55,7 +46,7 @@ runs: echo ${OS_SSH_KEY_FILE} | base64 --decode > /tmp/os-ssh-key-file chmod 400 /tmp/os-ssh-key-file env: - OS_SSH_KEY_FILE: ${{ inputs.OS_SSH_KEY_FILE }} + OS_SSH_KEY_FILE: ${{ secrets.OS_SSH_KEY_FILE }} - name: (PREPARE) Setup OS credentials shell: bash @@ -83,8 +74,8 @@ runs: chmod 755 /tmp/os-credentials.sh env: - OS_APPLICATION_CREDENTIAL_ID: ${{ inputs.OS_APPLICATION_CREDENTIAL_ID }} - OS_APPLICATION_CREDENTIAL_SECRET: ${{ inputs.OS_APPLICATION_CREDENTIAL_SECRET }} + OS_APPLICATION_CREDENTIAL_ID: ${{ secrets.OS_APPLICATION_CREDENTIAL_ID }} + OS_APPLICATION_CREDENTIAL_SECRET: ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }} - name: (PREPARE) Setup Python uses: actions/setup-python@v4 diff --git a/.github/workflows/night.yaml b/.github/workflows/night.yaml index 7f3394999c..2c88f631ed 100644 --- a/.github/workflows/night.yaml +++ b/.github/workflows/night.yaml @@ -12,8 +12,8 @@ on: concurrency: night jobs: - night: - name: Night + installation: + name: Installation runs-on: ubuntu-22.04 steps: ################################################### @@ -30,10 +30,7 @@ jobs: - name: (PREPARE) Prepare environment uses: ./.github/actions/prepare-integration-test with: - GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }} - OS_SSH_KEY_FILE: ${{ secrets.OS_SSH_KEY_FILE }} - OS_APPLICATION_CREDENTIAL_ID: ${{ secrets.OS_APPLICATION_CREDENTIAL_ID }} - OS_APPLICATION_CREDENTIAL_SECRET: ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }} + secrets: ${{ secrets }} ################################################### # @@ -57,9 +54,25 @@ jobs: gpg --verify vintner-linux-x64.asc rm vintner-linux-x64.asc - - name: Abort - run: exit 1 - if: always() + xopera-motivation-dev: + name: xOpera Motivation Dev + runs-on: ubuntu-22.04 + steps: + ################################################### + # + # Prepare + # + ################################################### + + - name: (PREPARE) Checkout Repository + uses: actions/checkout@v3 + with: + lfs: true + + - name: (PREPARE) Prepare environment + uses: ./.github/actions/prepare-integration-test + with: + secrets: ${{ secrets }} ################################################### # @@ -76,6 +89,10 @@ jobs: vintner orchestrators enable --orchestrator unfurl vintner orchestrators attest --orchestrator unfurl + - name: Abort + run: exit 1 + if: always() + - name: (UNFURL-MOTIVATION-PROD) Resolve variability run: | vintner templates import --template motivation --path examples/unfurl-motivation