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
def loadProperties() { | |
def props = new Properties() | |
def file = new File("gradle.properties") | |
file.withInputStream { | |
props.load(it) | |
} | |
return props | |
} | |
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
- name: Increment Bills-of-Materials | |
run: | | |
mvn versions:set -DnewVersion=${{ steps.finalVersion.outputs.result }} -f bom | |
mvn clean install -f bom | |
- name: Increment Zephyr Maven Plugin Version | |
run: >- | |
mvn versions:set | |
-DnewVersion=${{ steps.finalVersion.outputs.result }} |
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
- name: Deploy Bills-Of-Materials | |
run: >- | |
mvn install deploy -f bom | |
--settings bom/settings/settings.xml | |
-Dsunshower-repo.username=${{secrets.MAVEN_REPOSITORY_USERNAME}} | |
-Dsunshower-repo.password=${{secrets.MAVEN_REPOSITORY_PASSWORD}} -e | |
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
- name: Commit Version Changes | |
run: | | |
git config --local user.email "build@sunshower.io" | |
git config --local user.name "build" | |
git commit -am "Final Release [tag: final, version: ${{steps.finalVersion.outputs.result}}]" | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | |
git tag -a v${{ steps.finalVersion.outputs.result }} -m "Releasing ${{ steps.finalVersion.outputs.result }}" | |
git push origin v${{ steps.finalVersion.outputs.result }} | |
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
- uses: actions/upload-artifact@v2 | |
with: | |
name: zephyr-main | |
path: zephyr-main/build/distributions/*.zip | |
- name: get commit message | |
run: echo ::set-env name=commitmsg::$(git log --format=%B -n 1 ${{ github.event.after }}) | |
- name: Perform Release | |
id: create_release |
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
terraform { | |
required_providers { | |
dns = { | |
source = "hashicorp/dns" | |
} | |
} | |
} | |
/** |
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
variable "A" { | |
type = object({ | |
name = string | |
ip = string | |
}) | |
} | |
variable "B" { | |
type = object({ | |
name = string |
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
terraform { | |
required_version = ">=0.14" | |
required_providers { | |
dns = { | |
source = "hashicorp/dns" | |
version = "3.0.1" | |
} | |
} | |
} |
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
provider "dns" { | |
update { | |
server = var.dns_server.server | |
} | |
} |
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
/** | |
Create DNS entries for virtual machines | |
*/ | |
module "dns_configuration" { | |
for_each = var.cluster_nodes | |
source = "./dns" | |
dns_server = var.dns_server | |
hosts = each.value | |
api_dns = var.api_server | |
api_domain = var.domain |