Skip to content

Commit

Permalink
Refresh module table (#289)
Browse files Browse the repository at this point in the history
* Add logging

* Refresh module table

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
shenglol and github-actions[bot] authored Mar 23, 2023
1 parent 40f964c commit 2df62d9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,23 @@ Below is a table containing all published modules. Each version badge shows the
| Module | Version | Docs |
| :----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| `app/dapr-containerapp` | <a href="https://mcr.microsoft.com/v2/bicep/app/dapr-containerapp/tags/list"><image src="https://img.shields.io/badge/mcr-1.0.2-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/app/dapr-containerapp/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/app/dapr-containerapp/README.md) |
| `app/dapr-containerapps-environment` | <a href="https://mcr.microsoft.com/v2/bicep/app/dapr-containerapps-environment/tags/list"><image src="https://img.shields.io/badge/mcr-1.2.1-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/app/dapr-containerapps-environment/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/app/dapr-containerapps-environment/README.md) |
| `app/dapr-containerapps-environment` | <a href="https://mcr.microsoft.com/v2/bicep/app/dapr-containerapps-environment/tags/list"><image src="https://img.shields.io/badge/mcr-1.2.2-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/app/dapr-containerapps-environment/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/app/dapr-containerapps-environment/README.md) |
| `azure-gaming/game-dev-vm` | <a href="https://mcr.microsoft.com/v2/bicep/azure-gaming/game-dev-vm/tags/list"><image src="https://img.shields.io/badge/mcr-1.0.2-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/azure-gaming/game-dev-vm/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/azure-gaming/game-dev-vm/README.md) |
| `azure-gaming/game-dev-vmss` | <a href="https://mcr.microsoft.com/v2/bicep/azure-gaming/game-dev-vmss/tags/list"><image src="https://img.shields.io/badge/mcr-1.1.1-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/azure-gaming/game-dev-vmss/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/azure-gaming/game-dev-vmss/README.md) |
| `compute/availability-set` | <a href="https://mcr.microsoft.com/v2/bicep/compute/availability-set/tags/list"><image src="https://img.shields.io/badge/mcr-1.0.1-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/compute/availability-set/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/compute/availability-set/README.md) |
| `compute/container-registry` | <a href="https://mcr.microsoft.com/v2/bicep/compute/container-registry/tags/list"><image src="https://img.shields.io/badge/mcr-1.0.1-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/compute/container-registry/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/compute/container-registry/README.md) |
| `compute/custom-image-vmss` | <a href="https://mcr.microsoft.com/v2/bicep/compute/custom-image-vmss/tags/list"><image src="https://img.shields.io/badge/mcr-1.0.1-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/compute/custom-image-vmss/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/compute/custom-image-vmss/README.md) |
| `deployment-scripts/aks-run-command` | <a href="https://mcr.microsoft.com/v2/bicep/deployment-scripts/aks-run-command/tags/list"><image src="https://img.shields.io/badge/mcr-1.0.3-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/aks-run-command/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/aks-run-command/README.md) |
| `deployment-scripts/aks-run-helm` | <a href="https://mcr.microsoft.com/v2/bicep/deployment-scripts/aks-run-helm/tags/list"><image src="https://img.shields.io/badge/mcr-1.0.1-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/aks-run-helm/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/aks-run-helm/README.md) |
| `deployment-scripts/aks-run-helm` | <a href="https://mcr.microsoft.com/v2/bicep/deployment-scripts/aks-run-helm/tags/list"><image src="https://img.shields.io/badge/mcr-2.0.1-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/aks-run-helm/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/aks-run-helm/README.md) |
| `deployment-scripts/build-acr` | <a href="https://mcr.microsoft.com/v2/bicep/deployment-scripts/build-acr/tags/list"><image src="https://img.shields.io/badge/mcr-2.0.1-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/build-acr/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/build-acr/README.md) |
| `deployment-scripts/create-kv-certificate` | <a href="https://mcr.microsoft.com/v2/bicep/deployment-scripts/create-kv-certificate/tags/list"><image src="https://img.shields.io/badge/mcr-3.0.1-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/create-kv-certificate/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/create-kv-certificate/README.md) |
| `deployment-scripts/create-kv-certificate` | <a href="https://mcr.microsoft.com/v2/bicep/deployment-scripts/create-kv-certificate/tags/list"><image src="https://img.shields.io/badge/mcr-3.0.2-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/create-kv-certificate/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/create-kv-certificate/README.md) |
| `deployment-scripts/import-acr` | <a href="https://mcr.microsoft.com/v2/bicep/deployment-scripts/import-acr/tags/list"><image src="https://img.shields.io/badge/mcr-3.0.1-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/import-acr/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/import-acr/README.md) |
| `deployment-scripts/wait` | <a href="https://mcr.microsoft.com/v2/bicep/deployment-scripts/wait/tags/list"><image src="https://img.shields.io/badge/mcr-1.0.1-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/wait/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/wait/README.md) |
| `lz/sub-vending` | <a href="https://mcr.microsoft.com/v2/bicep/lz/sub-vending/tags/list"><image src="https://img.shields.io/badge/mcr-1.2.2-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/lz/sub-vending/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/lz/sub-vending/README.md) |
| `network/virtual-network` | <a href="https://mcr.microsoft.com/v2/bicep/network/virtual-network/tags/list"><image src="https://img.shields.io/badge/mcr-1.1.2-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/network/virtual-network/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/network/virtual-network/README.md) |
| `samples/array-loop` | <a href="https://mcr.microsoft.com/v2/bicep/samples/array-loop/tags/list"><image src="https://img.shields.io/badge/mcr-1.0.1-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/samples/array-loop/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/samples/array-loop/README.md) |
| `samples/hello-world` | <a href="https://mcr.microsoft.com/v2/bicep/samples/hello-world/tags/list"><image src="https://img.shields.io/badge/mcr-1.0.2-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/samples/hello-world/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/samples/hello-world/README.md) |
| `storage/storage-account` | <a href="https://mcr.microsoft.com/v2/bicep/storage/storage-account/tags/list"><image src="https://img.shields.io/badge/mcr-0.0.1-blue"></a> | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/storage/storage-account/main.bicep)[📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/storage/storage-account/README.md) |

<!-- End Module Table -->

Expand Down
1 change: 1 addition & 0 deletions scripts/github-actions/refresh-module-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ async function generateModulesTable(require, axios, fs, path, core) {
const versionListUrl = `https://mcr.microsoft.com/v2/bicep/${modulePath}/tags/list`;

try {
core.info(`Getting ${modulePath}...`);
const versionListResponse = await axios.get(versionListUrl);
const latestVersion = versionListResponse.data.tags.sort().at(-1);
const badgeUrl = `https://img.shields.io/badge/mcr-${latestVersion}-blue`;
Expand Down
2 changes: 2 additions & 0 deletions scripts/github-actions/upload-modules-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ async function uploadModulesMetadata({ require, core }) {
const versionListUrl = `https://mcr.microsoft.com/v2/bicep/${modulePath}/tags/list`;

try {
core.info(`Getting ${modulePath}...`);

const versionListResponse = await axios.default.get(versionListUrl);
const tags = versionListResponse.data.tags.sort();

Expand Down

0 comments on commit 2df62d9

Please sign in to comment.