Skip to content
Merged
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
25 changes: 25 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,31 @@
}
],
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"^\\.github/workflows/ci\\.yaml$"
],
"datasourceTemplate": "github-commits",
"packageNameTemplate": "windsorcli/cli",
"versioningTemplate": "semver",
"matchStrings": [
"ref:\\s*(?<currentValue>main)"
]
},
{
"customType": "regex",
"fileMatch": [
"^\\.github/workflows/ci\\.yaml$"
],
"matchStrings": [
"(^|\\s)WINDSORCLI_VERSION:\\s*(?<currentValue>v[\\d\\.]+)"
],
"depNameTemplate": "version",
"datasourceTemplate": "github-tags",
"packageNameTemplate": "windsorcli/cli",
"versioningTemplate": "semver"
},
{
"customType": "regex",
"fileMatch": ["^\\.github/workflows/ci\\.yaml$"],
Expand Down
45 changes: 30 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- main

env:
WINDSOR_PROJECT_ROOT: ${{ github.workspace }}

jobs:
# Blueprint Checks
checks:
Expand All @@ -24,7 +27,7 @@ jobs:
TALOSCONFIG: ${{ github.workspace }}/contexts/local/.talos/config
PRIVATE_DOMAIN_NAME: private.test
DNS_SERVER_IP: "10.5.255.200"
WINDSOR_VERSION: "v0.2.0"
WINDSORCLI_VERSION: "v0.5.1"

steps:
- name: Checkout code
Expand All @@ -40,25 +43,37 @@ jobs:
key: docker-cache-${{ runner.os }}-${{ github.sha }}
restore-keys: docker-cache-${{ runner.os }}-

- name: Install Aqua
# Install Aqua
- name: Install Aqua on Linux/macOS
uses: aquaproj/aqua-installer@e2d0136abcf70b7a2f6f505720640750557c4b33 # v3.1.1
with:
aqua_version: v2.44.1

- name: Set aqua path on Linux/macOS
run: |
echo "${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin" >> $GITHUB_PATH

# Install tools
- name: Install tools
run: aqua install

- name: Install Windsor CLI from Main Branch
run: |
git clone https://github.com/windsorcli/cli.git
cd cli/cmd/windsor
go build -o windsor
chmod +x windsor
mkdir -p $HOME/.local/bin
mv windsor $HOME/.local/bin
echo "$HOME/.local/bin" >> $GITHUB_PATH
aqua install

# Install Windsor CLI
- name: Install Windsor CLI
uses: windsorcli/action/.github/actions/windsorcli@078842a08b468bd2278563bbc929e9d968095988 # v0.2.0
with:
version: ${{ env.WINDSORCLI_VERSION }}
install_folder: ${{ github.workspace }}/bin
context: local

# Windsor Up
- name: Windsor Up on Linux/macOS
run: |
windsor init local

windsor up --install --verbose

- name: Print Windsor Version
# Windsor Down
- name: Windsor Down on Linux/macOS
run: |
windsor version

windsor down --clean
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# core
Core configurations used as the basis for most blueprints

![CI Workflow](https://github.com/your-repo/core/actions/workflows/ci.yaml/badge.svg)
Loading