Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update test artifacts to v.25.0 #426

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions .github/workflows/branchtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
server:
type: string
required: true
test-type:
required: true
type: string
workflow_dispatch:
inputs:
tag:
Expand All @@ -40,7 +43,14 @@ on:
description: server hostname
required: true
default: "server"

test-type:
description: digitalocean token
required: true
type: choice
options:
- devops
- branch

jobs:

setadmin:
Expand All @@ -55,6 +65,12 @@ jobs:
name: remove all gateways
runs-on: ubuntu-latest
steps:
- name: set token
run: echo "TOKEN=${{ secrets.DO_TOKEN }}" >> $GITHUB_ENV
if: inputs.test-type == 'devops'
- name: set branch token
run: echo "TOKEN=${{ secrets.TESTING_DO_TOKEN }}" >> $GITHUB_ENV
if: inputs.test-type == 'branch'
- name: get binary
run: |
mkdir bin
Expand All @@ -65,7 +81,7 @@ jobs:
chmod +x bin/test
bin/test clean
env:
DIGITALOCEAN_TOKEN: ${{ secrets.DO_TOKEN }}
DIGITALOCEAN_TOKEN: ${{ env.TOKEN }}
KEY: ${{ secrets.TESTING_SSH_KEY }}
TAG: ${{ inputs.tag }}
NETWORK: ${{ inputs.network}}
Expand Down Expand Up @@ -96,7 +112,7 @@ jobs:
sleep 30
bin/test ping
env:
DIGITALOCEAN_TOKEN: ${{ secrets.DO_TOKEN }}
DIGITALOCEAN_TOKEN: ${{ env.TOKEN }}
KEY: ${{ secrets.TESTING_SSH_KEY }}
TAG: ${{ inputs.tag }}
NETWORK: ${{ inputs.network }}
Expand Down Expand Up @@ -127,7 +143,7 @@ jobs:
bin/test egress
bin/test relay
env:
DIGITALOCEAN_TOKEN: ${{ secrets.DO_TOKEN }}
DIGITALOCEAN_TOKEN: ${{ env.TOKEN }}
KEY: ${{ secrets.TESTING_SSH_KEY }}
TAG: ${{ inputs.tag }}
NETWORK: ${{ inputs.network }}
Expand Down Expand Up @@ -156,7 +172,7 @@ jobs:
chmod +x bin/test
bin/test ping
env:
DIGITALOCEAN_TOKEN: ${{ secrets.DO_TOKEN }}
DIGITALOCEAN_TOKEN: ${{ env.TOKEN }}
KEY: ${{ secrets.TESTING_SSH_KEY }}
TAG: ${{ inputs.tag }}
NETWORK: ${{ inputs.network }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/devops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ jobs:
api: "https://api.clustercat.com"
masterkey: secretkey
server: server
test-type: devops
secrets: inherit

1 change: 1 addition & 0 deletions .github/workflows/runall-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ jobs:
api: "https://api.clustercat.com"
masterkey: "secretkey"
server: "server"
test-type: devops
secrets: inherit

2 changes: 1 addition & 1 deletion .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
terraform plan
terraform apply -auto-approve
env:
TF_VAR_do_token: "${{ secrets.DO_TOKEN }}"
TF_VAR_do_token: "${{ secrets.TESTING_DO_TOKEN }}"
TF_VAR_pvt_key: "${{ secrets.TESTING_SSH_KEY }}"
TF_VAR_branch: "${{ inputs.netmakerbranch }}"
TF_VAR_clientbranch: "${{ inputs.netclientbranch }}"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,5 @@ jobs:
SSH_KEY: ${{ secrets.TESTING_SSH_KEY }}
- name: build linux package
run: |
ssh [email protected] "cd packages; git restore .; git pull; export LC_VERSION=0.24.3; export LC_REVISION=${{ env.REVISION }}; ./apt_test_builder.sh; git restore ."
ssh [email protected] "cd packages; git restore .; git pull; export VERSION=0.25.0; export REVISION=${{ env.REVISION }}; ./apt_test_builder.sh; git restore ."

5 changes: 3 additions & 2 deletions .github/workflows/testdeploybranch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:

terraform:
needs: [getserver]
uses: gravitl/devops/.github/workflows/terraform.yml@master
uses: gravitl/devops/.github/workflows/terraform.yml@NET-1438
with:
netclientbranch: ${{ inputs.netclientbranch }}
netmakerbranch: ${{ inputs.netmakerbranch }}
Expand Down Expand Up @@ -110,11 +110,12 @@ jobs:

testbranch:
needs: [getserver, terraform, masterkey]
uses: ./.github/workflows/branchtest.yml
uses: gravitl/devops/.github/workflows/branchtest.yml@NET-1438
with:
tag: ${{ inputs.tag }}
network: netmaker
api: "https://api.${{ needs.getserver.outputs.server }}.clustercat.com"
masterkey: ${{ needs.masterkey.outputs.masterkey }}
server: ${{ needs.getserver.outputs.server }}
test-type: branch
secrets: inherit
Loading