Skip to content

Commit

Permalink
Merge pull request #7 from redhat-gpte-devopsautomation/main
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
treddy08 authored Nov 1, 2024
2 parents 5567d2a + 225032c commit 6295556
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 5 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to 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:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
run: |
mkdir output
docker run --user=$(id -u) --rm -v `pwd`:/showroom/repo --mount 'type=tmpfs,dst=/showroom/repo/.cache' --entrypoint antora -w /showroom/repo ghcr.io/rhpds/showroom-content:latest --to-dir=output default-site.yml
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'output'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Binary file modified content/modules/ROOT/assets/images/17_Authorize_Gitlab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/modules/ROOT/assets/images/3_Authorize.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 9 additions & 5 deletions content/modules/ROOT/pages/chapter01.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ image::1_Authenticate.png[]

image::2_Gitlab_Authenticate.png[]

* You then click on the *Authorize* button to authorize link:glossary.html#keycloak[*Keycloak*,window=_blank] to access you account.
* You then click on the *Authorize keycloak* button to authorize link:glossary.html#keycloak[*Keycloak*,window=_blank] to access you account.

image::3_Authorize.png[]

Expand Down Expand Up @@ -117,16 +117,20 @@ image::15_Login_RHSSO.png[]

image::16_Allow_Selected_Permissions.png[]

* Subsequently, you click *Authorize* to grant *OpenShift Dev Spaces* access to your *GitLab* account.

image::17_Authorize_Gitlab.png[]

* *OpenShift Dev Spaces* then begins creating your workspace, processing a *Devfile* containing all the configuration needed to set up your development environment.

NOTE: A link:https://devfile.io/[*Devfile*,window=_blank] is a YAML configuration file that serves as a portable definition for a development environment. It is designed to be a universal format that can describe any type of development environment, making it easier for developers to code, build, test, and run applications across different tools and platforms without the need to manually configure each environment.

image::18_DevSpaces_Process_Devfile.png[]

* A prompt *Do you trust the authors of this repository?* will appear. Select *Do not ask me again for other repositories* and then click *Continue*

image::99_Devspaces_Trust_Repository.png[]

* Subsequently, you click *Authorize devspaces* to grant *OpenShift Dev Spaces* access to your *GitLab* account.

image::17_Authorize_Gitlab.png[]

* After waiting a few minutes for *OpenShift Dev Spaces* to finish setting up your workspace, you're presented with a fully fledged IDE accessible from your browser.
* You click the button *Yes, I trust the authors*.

Expand Down

0 comments on commit 6295556

Please sign in to comment.