Skip to content

Commit 6bd8200

Browse files
author
Andrew Suderman
authored
Use oss-docs orb to publish docs (#263)
* Use oss-docs to publish docs * Fix repo name * remove testing values
1 parent 7a2e870 commit 6bd8200

File tree

1 file changed

+10
-46
lines changed

1 file changed

+10
-46
lines changed

.circleci/config.yml

+10-46
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version: 2.1
22

33
orbs:
44
rok8s: fairwinds/rok8s-scripts@11
5+
oss-docs: fairwinds/oss-docs@0
56

67
executors:
78
golang-exec:
@@ -67,56 +68,16 @@ jobs:
6768
vault_path: repo/rbac-lookup/env
6869
- run: go mod download && go mod verify
6970
- run: goreleaser
70-
publish_docs:
71-
docker:
72-
- image: cimg/node:15.5.1
73-
steps:
74-
- checkout
75-
- run:
76-
name: Build Docs Site
77-
command: |
78-
set -e
79-
cd ./docs
80-
npm install
81-
npm run check-links
82-
npm run build
83-
- run:
84-
name: Install Tools
85-
command: |
86-
cd /tmp
87-
echo "Installing AWS CLI"
88-
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
89-
unzip awscliv2.zip
90-
sudo ./aws/install
91-
92-
echo "Installing Hashicorp Vault"
93-
curl -LO https://releases.hashicorp.com/vault/1.9.3/vault_1.9.3_linux_amd64.zip
94-
unzip vault_1.9.3_linux_amd64.zip
95-
sudo mv vault /usr/bin/vault
96-
sudo chmod +x /usr/bin/vault
97-
vault --version
98-
99-
echo "Installing yq"
100-
curl -LO https://github.com/mikefarah/yq/releases/download/v4.16.2/yq_linux_amd64.tar.gz
101-
tar -zxvf yq_linux_amd64.tar.gz
102-
sudo mv yq_linux_amd64 /usr/bin/yq
103-
sudo chmod +x /usr/bin/yq
104-
yq --version
105-
- rok8s/get_vault_env:
106-
vault_path: repo/rbac-lookup/env
107-
- run:
108-
name: Publish Docs Site to S3
109-
command: |
110-
cd ./dist
111-
aws s3 sync ./ s3://rbac-lookup.docs.fairwinds.com --delete
11271
workflows:
11372
version: 2
114-
test-and-release:
73+
test:
11574
jobs:
11675
- test:
11776
filters:
11877
branches:
11978
only: /.*/
79+
tags:
80+
ignore: /.*/
12081
- snapshot:
12182
requires:
12283
- test
@@ -141,15 +102,18 @@ workflows:
141102
name: "End-To-End Kubernetes 1.22"
142103
kind_node_image: "kindest/node:v1.22.0@sha256:b8bda84bb3a190e6e028b1760d277454a72267a5454b57db34437c34a588d047"
143104
<<: *e2e_config
105+
release:
106+
jobs:
144107
- release:
145108
filters:
146109
branches:
147110
ignore: /.*/
148111
tags:
149112
only: /.*/
150-
- publish_docs:
113+
- oss-docs/publish-docs:
114+
repository: rbac-lookup
151115
filters:
152116
branches:
153-
only: sudermanjr/docs-site
117+
ignore: /.*/
154118
tags:
155-
only: /.*/
119+
only: /^.*/

0 commit comments

Comments
 (0)