1 Commits
Author SHA1 Message Date
renovate-bot 2b84db9a44 Update actions/checkout action to v6 2026-03-17 06:01:13 +00:00
5 changed files with 13 additions and 17 deletions

No files matched your search

+5 -9
View File
@@ -9,18 +9,16 @@ on:
paths: paths:
- 'templates/**' - 'templates/**'
- 'base/**' - 'base/**'
workflow_dispatch:
jobs: jobs:
validate: validate:
name: Validate templates name: Validate templates
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: registry.bobert.me/anthorob/coder-base:terraform
steps: steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
- name: Terraform validate for each template - name: Terraform validate for each template
run: | run: |
for dir in templates/*; do for dir in templates/*; do
@@ -34,23 +32,21 @@ jobs:
name: Deploy templates name: Deploy templates
needs: validate needs: validate
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: registry.bobert.me/anthorob/coder-base:cli
env: env:
COMMIT_SHORT_SHA: ${{ github.sha }} COMMIT_SHORT_SHA: ${{ github.sha }}
REPO: ${{ github.repository }} REPO: ${{ github.repository }}
steps: steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install Coder CLI
run: |
curl -fsSL https://coder.com/install.sh | sh
- name: Deploy each template - name: Deploy each template
run: | run: |
short_sha=${COMMIT_SHORT_SHA:0:7} short_sha=${COMMIT_SHORT_SHA:0:7}
for dir in templates/*; do for dir in templates/*; do
[ -d "$dir" ] || continue [ -d "$dir" ] || continue
name=$(basename "$dir") name=$(basename "$dir")
display_name=$(echo "$name" | sed "s/.*/\u&/" | sed "s/-/ /g") display_name=$(echo "$name" | sed 's/.*/\u&/' | sed 's/-/ /g')
echo "==> deploying $name" echo "==> deploying $name"
coder templates push -d "$dir" --name "$short_sha" --message "Auto-deployed from $REPO on commit $short_sha" --yes "$name" coder templates push -d "$dir" --name "$short_sha" --message "Auto-deployed from $REPO on commit $short_sha" --yes "$name"
+2 -2
View File
@@ -10,9 +10,9 @@ terraform {
} }
module "basic_workspace" { module "basic_workspace" {
source = "git::https://gitea.bobert.me/anthorob/coder-templates.git//base?ref=main" source = "git::https://git.bobert.me/anthorob/coder-templates.git//base?ref=main"
docker_image = "gitea.bobert.me/anthorob/coder-base:latest" docker_image = "registry.bobert.me/anthorob/coder-base:latest"
vscode_extensions = [ vscode_extensions = [
"christian-kohler.path-intellisense", "christian-kohler.path-intellisense",
+2 -2
View File
@@ -22,9 +22,9 @@ data "coder_parameter" "java_version" {
} }
module "java_workspace" { module "java_workspace" {
source = "git::https://gitea.bobert.me/anthorob/coder-templates.git//base?ref=main" source = "git::https://git.bobert.me/anthorob/coder-templates.git//base?ref=main"
docker_image = "gitea.bobert.me/anthorob/coder-images:java${data.coder_parameter.java_version.value}" docker_image = "registry.bobert.me/anthorob/coder-images:java${data.coder_parameter.java_version.value}"
language_metadata = [ language_metadata = [
{ {
+2 -2
View File
@@ -49,9 +49,9 @@ data "coder_parameter" "node_version" {
} }
module "php_workspace" { module "php_workspace" {
source = "git::https://gitea.bobert.me/anthorob/coder-templates.git//base?ref=main" source = "git::https://git.bobert.me/anthorob/coder-templates.git//base?ref=main"
docker_image = "gitea.bobert.me/anthorob/coder-images:php${data.coder_parameter.php_version.value}" docker_image = "registry.bobert.me/anthorob/coder-images:php${data.coder_parameter.php_version.value}"
language_metadata = [ language_metadata = [
{ {
+2 -2
View File
@@ -22,9 +22,9 @@ data "coder_parameter" "python_version" {
} }
module "python_workspace" { module "python_workspace" {
source = "git::https://gitea.bobert.me/anthorob/coder-templates.git//base?ref=main" source = "git::https://git.bobert.me/anthorob/coder-templates.git//base?ref=main"
docker_image = "gitea.bobert.me/anthorob/coder-images:python${data.coder_parameter.python_version.value}" docker_image = "registry.bobert.me/anthorob/coder-images:python${data.coder_parameter.python_version.value}"
language_metadata = [ language_metadata = [
{ {