Skip to content

Commit

Permalink
Use oss-docs orb to publish docs (#314)
Browse files Browse the repository at this point in the history
* Use oss-docs orb to publish docs

* Fix repo name

* remove testing values
  • Loading branch information
Andrew Suderman authored Jul 6, 2022
1 parent 15e7234 commit 1d44cb1
Showing 1 changed file with 4 additions and 46 deletions.
50 changes: 4 additions & 46 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: 2.1

orbs:
rok8s: fairwinds/rok8s-scripts@11
oss-docs: fairwinds/oss-docs@0

references:
enable_experimental_features: &enable_experimental_docker_features
Expand Down Expand Up @@ -111,48 +112,6 @@ jobs:
chmod +x insights-ci.sh
./insights-ci.sh
publish_docs:
docker:
- image: cimg/node:15.5.1
steps:
- checkout
- run:
name: Build Docs Site
command: |
set -e
cd ./docs
npm install
npm run check-links
npm run build
- run:
name: Install Tools
command: |
cd /tmp
echo "Installing AWS CLI"
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
echo "Installing Hashicorp Vault"
curl -LO https://releases.hashicorp.com/vault/1.9.3/vault_1.9.3_linux_amd64.zip
unzip vault_1.9.3_linux_amd64.zip
sudo mv vault /usr/bin/vault
sudo chmod +x /usr/bin/vault
vault --version
echo "Installing yq"
curl -LO https://github.com/mikefarah/yq/releases/download/v4.16.2/yq_linux_amd64.tar.gz
tar -zxvf yq_linux_amd64.tar.gz
sudo mv yq_linux_amd64 /usr/bin/yq
sudo chmod +x /usr/bin/yq
yq --version
- rok8s/get_vault_env:
vault_path: repo/rbac-manager/env
- run:
name: Publish Docs Site to S3
command: |
cd ./dist
aws s3 sync ./ s3://pluto.docs.fairwinds.com --delete
workflows:
version: 2
Expand Down Expand Up @@ -191,11 +150,10 @@ workflows:
ignore: /.*/
tags:
only: /v.*/
- publish_docs:
requires:
- build_and_release
- oss-docs/publish-docs:
repository: rbac-manager
filters:
branches:
ignore: /.*/
tags:
only: /v.*/
only: /^.*/

0 comments on commit 1d44cb1

Please sign in to comment.