Skip to content

Commit

Permalink
Merge branch 'main' into test-different-url
Browse files Browse the repository at this point in the history
  • Loading branch information
morri-son authored Dec 11, 2024
2 parents 8d6d237 + f05d181 commit da8574d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
name: Setup Node.js
with:
cache: 'npm'
node-version: 20
node-version: 23

- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
Expand Down
26 changes: 13 additions & 13 deletions content/docs/examples/secure-software-delivery.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,61 +44,61 @@ Instructions are provided to guide you through the process of deploying the demo

**The source code for the demo can be found at [https://github.com/open-component-model/demo-secure-delivery](https://github.com/open-component-model/demo-secure-delivery)**

#### 0. Checkout the source repository
### 0. Checkout the source repository

```bash
git clone https://github.com/open-component-model/demo-secure-delivery && \
cd demo-secure-delivery
```

#### 1. Setup demo environment
### 1. Setup demo environment

To deploy the demo environment execute the following:

`make run`

Once the environment has been created, login to Gitea using the following credentials:

```
```bash
username: ocm-admin
password: password
```

#### 2. Cut a release for `podinfo`
### 2. Cut a release for `podinfo`

![release](https://github.com/open-component-model/demo-secure-delivery/raw/main/docs/images/publish.png)

Next navigate to: https://gitea.ocm.dev/software-provider/podinfo-component/releases and click "New Release".

Enter "v1.0.0" for both the tag name and release name, and then click "Publish Release".

#### 3. Verify the release
### 3. Verify the release

![ci](https://github.com/open-component-model/demo-secure-delivery/raw/main/docs/images/release_automation.png)

Once the release is published, navigate to https://ci.ocm.dev/#/namespaces/tekton-pipelines/pipelineruns and follow the progress of the release automation.

#### 4. Install the Component
### 4. Install the Component

![install](https://github.com/open-component-model/demo-secure-delivery/raw/main/docs/images/install.png)

When the release pipeline has been completed we can install the component. Navigate to https://gitea.ocm.dev/software-consumer/ocm-applications/pulls/1 and merge the pull request.

#### 5. View the Weave GitOps Dashboard
### 5. View the Weave GitOps Dashboard

![weave-gitops](https://github.com/open-component-model/demo-secure-delivery/raw/main/docs/images/weave-gitops.png)

With a minute or so Flux will reconcile the Weave GitOps component and the dashboard will be accessible at https://weave-gitops.ocm.dev. You can login with username: `admin` and password `password`.

#### 5. View the application
### 5. View the application

![podinfo](https://github.com/open-component-model/demo-secure-delivery/raw/main/docs/images/application.png)

We can view the `podinfo` Helm release that's been deployed in the default namespace: https://weave-gitops.ocm.dev/helm_release/graph?clusterName=Default&name=podinfo&namespace=default

We can also view the running application at https://podinfo.ocm.dev

#### 6. Apply configuration
### 6. Apply configuration

![configure](https://github.com/open-component-model/demo-secure-delivery/raw/main/docs/images/configure.png)

Expand All @@ -115,21 +115,21 @@ weave-gitops:
serviceAccountName: ocm-ops
```
#### 7. View the configured application
### 7. View the configured application
![update](https://github.com/open-component-model/demo-secure-delivery/raw/main/docs/images/update.png)
The changes will soon be reconciled by Flux and visible at https://podinfo.ocm.dev. Note how the pod id changes now that we have 2 replicas of our application running.
#### 8. Cut a new release
### 8. Cut a new release
Let's jump back to the provider repository and cut another release. This release will contain a new feature that changes the image displayed by the podinfo application. Follow the same process as before to create a release, bumping the version to `v1.1.0`.

#### 9. Verify the release
### 9. Verify the release

Once the release is published, navigate to https://ci.ocm.dev/#/namespaces/tekton-pipelines/pipelineruns and follow the progress of the release automation.

#### 10. Monitor the application update
### 10. Monitor the application update

![update-wego](https://github.com/open-component-model/demo-secure-delivery/raw/main/docs/images/update-wego.png)

Expand Down

0 comments on commit da8574d

Please sign in to comment.