-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into cd-ro-workshop
- Loading branch information
Showing
273 changed files
with
2,262 additions
and
1,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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Deploy Hugo with GitHub Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["main"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Setup Hugo | ||
uses: peaceiris/actions-hugo@v2 | ||
with: | ||
hugo-version: '0.110.0' | ||
- name: Run build script | ||
run: | | ||
cd labs | ||
chmod +x ./build.sh | ||
./build.sh | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: ./labs/public | ||
|
||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 | ||
|
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
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
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,18 @@ | ||
git submodule update --init --recursive | ||
|
||
cd base || exit 1 | ||
|
||
excluded_dirs="base workshop-setup public" | ||
directories=$(ls -d ../*/ | grep -vE "($(echo $excluded_dirs | sed 's/ /|/g'))/") | ||
|
||
echo "<html><head><title>CloudBees Labs</title></head><body>" >../public/index.html | ||
echo "<h1>Current Labs</h1><ul>" >>../public/index.html | ||
|
||
for dir in $directories; do | ||
dir_name=$(basename $dir) | ||
hugo --minify --config "${dir}/config.toml" --contentDir "${dir}/content/" --destination "../public/${dir_name}" --baseURL="/cloudbees-field-workshops/${dir_name}/" | ||
|
||
echo "<li><a href=\"/cloudbees-field-workshops/${dir_name}/\">${dir_name}</a></li>" >>../public/index.html | ||
done | ||
|
||
echo "</ul></body></html>" >>../public/index.html |
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,26 @@ | ||
baseURL = "" | ||
languageCode = "en-US" | ||
defaultContentLanguage = "en" | ||
|
||
title = "CloudBees CD/RO DevOps World 2023 Workshop!" | ||
theme = "hugo-theme-learn" | ||
metaDataFormat = "yaml" | ||
|
||
[outputs] | ||
home = [ "HTML", "RSS", "JSON"] | ||
|
||
[params] | ||
# Change default color scheme with a variant one. Can be "red", "blue", "green". | ||
themeVariant = "cloudbees" | ||
editURL = "https://github.com/cloudbees-days/cloudbees-field-workshops/edit/main/labs/cloudbees-cdro-compliance/content/" | ||
# Shows a checkmark for visited pages on the menu | ||
showVisitedLinks = true | ||
# Set this to true to disable copy-to-clipboard button for inline code. | ||
disableInlineCopyToClipBoard = true | ||
# If set to false, a Home button will appear below the search bar on the menu. | ||
disableLandingPageButton = true | ||
|
||
[markup] | ||
[markup.goldmark] | ||
[markup.goldmark.renderer] | ||
unsafe = true |
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,9 @@ | ||
--- | ||
title: "CloudBees CD/RO DevOps World 2023 Workshop!" | ||
chapter: true | ||
weight: 1 | ||
--- | ||
|
||
# CloudBees CD/RO DevOps World 2023 Workshop | ||
|
||
This workshop will familiarize you with CloudBees Software Delivery Automation and CloudBees CD/RO. Complete the hands-on labs to explore the features and technical advantages of CloudBees Platform for securing your SDLC. |
21 changes: 21 additions & 0 deletions
21
labs/cloudbees-cdro-compliance/content/labs/01_pre-reqs.md
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,21 @@ | ||
--- | ||
title: "Pre-requisites" | ||
chapter: false | ||
weight: 2 | ||
--- | ||
|
||
Welcome to the workshop. | ||
|
||
--- | ||
<link rel="stylesheet" href="../styles/spinner.css" /> | ||
|
||
## Registration | ||
|
||
<div id="content"> | ||
<div class="spin"></div> | ||
</div> | ||
<noscript> | ||
<p>Javascript is required for this form to work.</p> | ||
</noscript> | ||
|
||
<script type="module" src="../scripts/pre-reqs.js"></script> |
Oops, something went wrong.