Skip to content

Commit

Permalink
blockout release
Browse files Browse the repository at this point in the history
  • Loading branch information
rocktavious committed May 24, 2024
1 parent 516247c commit 8811a51
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 2 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/release-selfhosted.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Release Self-Hosted

workflow_dispatch: {}

jobs:
release:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Fetch All Tags
run: git fetch --force --tags
-
name: Install Task
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
-
name: Get version
id: bump
run: |
echo version=$(cat ./charts/opslevel/Chart.yaml | yq '.version') >> $GITHUB_OUTPUT
-
name: Prepare Manifests
run: task prepare-self-hosted
-
name: Lint Manifests
uses: replicatedhq/[email protected]
with:
replicated-api-token: ${{ secrets.REPLICATED_API_TOKEN }}
replicated-app: 'opslevel-helm'
yaml-dir: manifests
-
name: Create Release
uses: replicatedhq/[email protected]
with:
replicated-api-token: ${{ secrets.REPLICATED_API_TOKEN }}
replicated-app: 'opslevel-helm'
promote-channel: 'Internal'
yaml-dir: manfests
version: ${{ steps.bump.outputs.version }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
.idea
/manifests
27 changes: 27 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# https://taskfile.dev
version: '3'

vars:
VERSION_DYNAMIC:
sh: cat ./charts/opslevel/Chart.yaml | yq '.version'

tasks:
prepare-self-hosted:
desc: Workflow to run in CI to prepare self-hosted release
deps:
- install-helm
cmds:
- helm package ./charts/opslevel --dependency-update
- mkdir -p ./manifests
- mv ./opslevel-{{.VERSION_DYNAMIC}}.tgz ./manifests/opslevel-{{.VERSION_DYNAMIC}}.tgz

install-helm:
internal: true
platforms: [darwin]
preconditions:
- sh: 'which brew'
msg: '"brew" needed to install "helm"- see https://brew.sh'
status:
- test -n "command -v helm"
cmds: ["which helm > /dev/null || brew install helm"]

6 changes: 6 additions & 0 deletions charts/opslevel/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: replicated
repository: oci://registry.replicated.com/library
version: 1.0.0-beta.17
digest: sha256:aaea484922dc34d43fc3ee8ff1ec7255b6f9bbf475123a1046ea105b6a9de9ec
generated: "2024-05-24T14:44:19.045406-05:00"
8 changes: 6 additions & 2 deletions charts/opslevel/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
apiVersion: "v2"
name: "opslevel"
type: "application"
version: "2024.5.20"
appVersion: "2024.5.20"
version: "2024.5.24"
appVersion: "2024.3.21"
description: "The OpsLevel internal developer portal helps your team ship fast without risking your software standards."
home: "https://www.opslevel.com/"
icon: "https://app.opslevel.com/OpsLevelLogo-Primary.svg"
maintainers:
- name: "OpsLevel"
email: "[email protected]"
dependencies:
- name: 'replicated'
repository: 'oci://registry.replicated.com/library'
version: '1.0.0-beta.17'
Binary file not shown.

0 comments on commit 8811a51

Please sign in to comment.