Skip to content

Commit

Permalink
fix(vyos-build): vyaml, fix Renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
JJGadgets committed Feb 29, 2024
1 parent 71d6a0a commit 7a61665
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/vyos-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ env:
VYOS_ARCH: "amd64"
# renovate: datasource=github-releases depName=getsops/sops
SOPS_VERSION: "v3.8.1"
# renovate: datasource=github-releases depName=p3lim/vyaml
VYAML_VERSION: "0.2.4"
# renovate: datasource=github-releases depName=atuinsh/atuin
ATUIN_VERSION: "v18.0.1"
# renovate: datasource=github-releases depName=go-task/task
Expand Down Expand Up @@ -67,11 +69,11 @@ jobs:
VYOS_BUILDER=${{ env.VYOS_BUILDER }} \
VYOS_BUILD_TIME=${{ env.VYOS_BUILD_TIME }} \
SOPS_VERSION=${{ env.SOPS_VERSION }} \
VYAML_VERSION=${{ env.VYAML_VERSION }} \
ATUIN_VERSION=${{ env.ATUIN_VERSION }} \
TASK_VERSION=${{ env.TASK_VERSION }} \
DUO_VERSION=${{ env.DUO_VERSION }} \
bash ./vyos/build.sh"
bash ./vyos/build.sh
- name: Create release with artifact
uses: ncipollo/release-action@v1
Expand Down
9 changes: 5 additions & 4 deletions .renovaterc.json5
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@
"regexManagers": [
{
"description": "Process various other dependencies",
"fileMatch": ["^kube/.+\\.ya?ml$"],
// "fileMatch": ["^kube/.+\\.ya?ml$", "vyos/], // process regex from everywhere
"fileMatch": [".*"] // process regex from everywhere
"matchStrings": [
// Example: `k3s_release_version: "v1.27.3+k3s1"`
// Example: `k3s_release_version: "v1.27.3+k3s1"` (general regex matcher)
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( versioning=(?<versioning>\\S+))?\n.*?\"(?<currentValue>.*)\"\n",
// Example: `- https://github.com/rancher/system-upgrade-controller/releases/download/v0.11.0/crd.yaml`
// Example: `- https://github.com/rancher/system-upgrade-controller/releases/download/v0.11.0/crd.yaml` (e.g. kustomization.yaml lists)
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( versioning=(?<versioning>\\S+))?\n.*?-\\s(.*?)\/(?<currentValue>[^/]+)\/[^/]+\n",
// Example: apiVersion=helm.cattle.io/v1 kind=HelmChart
// for: apiVersion=helm.cattle.io/v1 kind=HelmChart
"datasource=(?<datasource>\\S+)\n.*?repo: (?<registryUrl>\\S+)\n.*?chart: (?<depName>\\S+)\n.*?version: (?<currentValue>\\S+)\n"
],
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}github-releases{{/if}}",
Expand Down
15 changes: 11 additions & 4 deletions vyos/build.sh
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
#!/usr/bin/env bash

# if [[ -z "${VYOS_VERSION}" ]]; then
# export VYOS_VERSION="1.3.6"
# fi

# renovate: datasource=github-tags depName=vyos/vyos-1x
VYOS_VERSION="${VYOS_VERSION:="1.3.6"}"
VYOS_URL="${VYOS_URL:=https://github.com/vyos/vyos-build}"
VYOS_ARCH="${VYOS_ARCH:=amd64}"
VYOS_BUILD_TIME="${VYOS_BUILD_TIME:="$(date +%Y%m%d%H%M)"}"

# renovate: datasource=github-releases depName=getsops/sops
SOPS_VERSION="v3.8.1"
SOPS_VERSION="v3.8.0"
SOPS_VERSION="${SOPS_VERSION#*v}"
#VYAML_VERSION="v

# renovate: datasource=github-releases depName=p3lim/vyaml
VYAML_VERSION="0.2.4"

# renovate: datasource=github-releases depName=atuinsh/atuin
ATUIN_VERSION="v18.0.1"
ATUIN_VERSION="v18.0.0"
ATUIN_VERSION="${ATUIN_VERSION#*v}"

# renovate: datasource=github-releases depName=go-task/task
TASK_VERSION="v3.35.0"
TASK_VERSION="${TASK_VERSION#*v}"

# renovate: datasource=github-releases depName=duosecurity/duo_unix
DUO_VERSION="duo_unix-2.0.3"
DUO_VERSION="duo_unix-2.0.2"
DUO_VERSION="${DUO_VERSION#*duo_unix-}"

pwd
Expand All @@ -31,6 +37,7 @@ pwd
ls -AlhR . # debug

curl -vL -o ./packages/sops.deb "https://github.com/getsops/sops/releases/download/v${SOPS_VERSION}/sops_${SOPS_VERSION}_${VYOS_ARCH}.deb"
curl -vL -o ./packages/vyaml.deb "https://github.com/p3lim/vyaml/releases/download/${VYAML_VERSION}/vyaml-${VYOS_ARCH}.deb"
curl -vL -o ./packages/atuin.deb "https://github.com/atuinsh/atuin/releases/download/v${ATUIN_VERSION}/atuin_${ATUIN_VERSION}_${VYOS_ARCH}.deb"
curl -vL -o ./packages/task.deb "https://github.com/atuinsh/atuin/releases/download/v${TASK_VERSION}/task_linux_${VYOS_ARCH}.deb"
curl -v -o ./packages/1password.deb "https://downloads.1password.com/linux/debian/${VYOS_ARCH}/stable/1password-latest.deb"
Expand Down

0 comments on commit 7a61665

Please sign in to comment.