-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2153 from gravitl/release_v0.18.5
Release v0.18.5
- Loading branch information
Showing
282 changed files
with
10,010 additions
and
16,444 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Deploy and Test Branch | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
branches: [develop] | ||
|
||
jobs: | ||
skip-check: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
skip: ${{ steps.check.outputs.skip }} | ||
steps: | ||
- id: skip | ||
uses: fkirc/skip-duplicate-actions@v5 | ||
with: | ||
concurrent_skipping: 'always' | ||
getbranch: | ||
runs-on: ubuntu-latest | ||
needs: skip-check | ||
if: ${{ needs.skip-check.outputs.skip != 'true' }} | ||
outputs: | ||
netclientbranch: ${{ steps.checkbranch.outputs.netclientbranch }} | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: gravitl/netclient | ||
ref: develop | ||
- name: check if branch exists | ||
id: checkbranch | ||
run: | | ||
if git show-ref ${{ github.head_ref}}; then | ||
echo branch exists | ||
echo "netclientbranch=${{ github.head_ref }}" >> $GITHUB_OUTPUT | ||
else | ||
echo branch does not exist | ||
echo "netclientbranch=develop" >> $GITHUB_OUTPUT | ||
fi | ||
terraform: | ||
needs: getbranch | ||
uses: gravitl/devops/.github/workflows/terraform.yml@master | ||
with: | ||
netmakerbranch: ${{ github.head_ref }} | ||
netclientbranch: ${{ needs.getbranch.outputs.netclientbranch }} | ||
secrets: inherit | ||
|
||
|
||
testbranch: | ||
needs: [getbranch, terraform] | ||
uses: gravitl/devops/.github/workflows/branchtest.yml@master | ||
with: | ||
tag: ${{ github.run_id }}-${{ github.run_attempt }} | ||
network: terraform | ||
secrets: inherit | ||
|
Oops, something went wrong.