-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjustments to accommodate publishing to mgmt 24 (#741)
* adjustments to accommodate publishing to mgmt 24 * self-peer review * remove excess ci * adjust actor * remove main from trigger * remove filter for github adjustments * adjust publish flow * step name shifts * chart docs -> kubefirst-docs * github publish adjustments * adjustment to trigger ci * adjusting branches back to main * lint fixes * lint fixes * version changes
- Loading branch information
Showing
15 changed files
with
130 additions
and
188 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,45 @@ | ||
--- | ||
name: Publish docs on prod | ||
|
||
env: | ||
ARGO_NAMESPACE: argo | ||
ARGO_VERSION: v3.4.1 | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '.github/**' | ||
- '.tools/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish_and_release: | ||
runs-on: self-hosted | ||
steps: | ||
- name: checkout repository | ||
uses: actions/checkout@v4 | ||
- name: inject slug/short variables | ||
uses: rlespinasse/github-slug-action@v4 | ||
- name: Deploy docs on production | ||
run: | | ||
echo "Install argo" | ||
# Download the binary | ||
curl -sLO https://github.com/argoproj/argo-workflows/releases/download/${ARGO_VERSION}/argo-linux-amd64.gz | ||
# Unzip | ||
gunzip argo-linux-amd64.gz | ||
# Make binary executable | ||
chmod +x argo-linux-amd64 | ||
echo "commit sha ${GITHUB_SHA}" | ||
./argo-linux-amd64 version --short | ||
./argo-linux-amd64 submit .argo/publish-and-release.yaml \ | ||
--generate-name="${GITHUB_REPOSITORY_NAME_PART}-publish-and-release-${GITHUB_SHA_SHORT}-" \ | ||
-p appName="${GITHUB_REPOSITORY_NAME_PART}" \ | ||
-p branch="${GITHUB_REF_NAME}" \ | ||
-p environment="production" \ | ||
-p containerRegistryURL="ghcr.io/konstructio/${GITHUB_REPOSITORY_NAME_PART}:${GITHUB_SHA_SHORT}" \ | ||
-p gitUrlNoProtocol="git@github.com:${GITHUB_REPOSITORY_OWNER_PART_SLUG}" \ | ||
-p shortSha="${GITHUB_SHA_SHORT}" \ | ||
-p gitopsDestinationFile="registry/environments/production/kubefirst-docs.yaml" \ | ||
--wait --log |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
apiVersion: v2 | ||
appVersion: 31a0cb9 | ||
description: Kubefirst documentation Helm chart | ||
name: docs | ||
name: kubefirst-docs | ||
type: application | ||
version: 1.144.0 | ||
version: 1.145.0 |
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
Oops, something went wrong.