Author SHA1 Message Date
renovate-bot 9c8d3296be Update actions/checkout action to v7 2026-07-20 16:00:40 +00:00
anthorob 2dc806973d Merge pull request 'Update actions/checkout action to v6' (#2) from renovate/actions-checkout-6.x into main
Reviewed-on: #2
2026-03-18 09:53:31 -04:00
anthorob ab285fedfc Merge pull request 'Update hashicorp/setup-terraform action to v4' (#4) from renovate/hashicorp-setup-terraform-4.x into main
Reviewed-on: #4
2026-03-18 09:53:16 -04:00
anthorob ea08a48286 fix 2026-03-18 09:38:19 -04:00
anthorob a8aed25422 coder cli secrets 2026-03-18 09:35:28 -04:00
renovate-bot 432e94c0cf Update hashicorp/setup-terraform action to v4 2026-03-18 13:31:38 +00:00
renovate-bot f78b18d121 Update actions/checkout action to v6
CI / Validate templates (push) Successful in 57s
CI / Deploy templates (push) Failing after 17s
2026-03-18 13:31:37 +00:00
anthorob 82e0d0e195 fix 2026-03-18 09:28:33 -04:00
anthorob ad0aac7b35 fix ci 2026-03-18 09:27:11 -04:00
anthorob ec8c148d1e dispatch 2026-03-18 09:18:59 -04:00
anthorob ce5e355756 test 2026-03-18 09:18:29 -04:00
anthorob 319b647fa9 update workflow
CI / Validate templates (push) Failing after 5s
CI / Deploy templates (push) Has been skipped
2026-03-18 09:10:57 -04:00
5 changed files with 27 additions and 21 deletions

No files matched your search

+19 -13
View File
@@ -2,22 +2,22 @@ name: CI
on: on:
push: push:
branches:
- main
paths: paths:
- 'templates/**' - 'templates/**'
- 'base/**' - 'base/**'
pull_request: workflow_dispatch:
paths:
- 'templates/**'
- 'base/**'
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@v4 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup Terraform
uses: hashicorp/setup-terraform@5e8dbf3c6d9deaf4193ca7a8fb23f2ac83bb6c85 # v4
- name: Terraform validate for each template - name: Terraform validate for each template
run: | run: |
@@ -32,13 +32,17 @@ 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 }}
CODER_URL: ${{ secrets.CODER_URL }}
CODER_SESSION_TOKEN: ${{ secrets.CODER_SESSION_TOKEN }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Install Coder CLI
run: |
curl -fsSL https://coder.com/install.sh | sh
- name: Deploy each template - name: Deploy each template
run: | run: |
@@ -46,9 +50,11 @@ jobs:
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" \
coder templates edit "$name" --display-name "$display_name Dev Environment" --description "Development environment for $name" --icon "/icon/$name.svg" --yes --url "$CODER_URL" --token "$CODER_SESSION_TOKEN"
coder templates edit "$name" --display-name "$display_name Dev Environment" --description "Development environment for $name" --icon "/icon/$name.svg" --yes \
--url "$CODER_URL" --token "$CODER_SESSION_TOKEN"
done done
+2 -2
View File
@@ -10,9 +10,9 @@ terraform {
} }
module "basic_workspace" { module "basic_workspace" {
source = "git::https://git.bobert.me/anthorob/coder-templates.git//base?ref=main" source = "git::https://gitea.bobert.me/anthorob/coder-templates.git//base?ref=main"
docker_image = "registry.bobert.me/anthorob/coder-base:latest" docker_image = "gitea.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://git.bobert.me/anthorob/coder-templates.git//base?ref=main" source = "git::https://gitea.bobert.me/anthorob/coder-templates.git//base?ref=main"
docker_image = "registry.bobert.me/anthorob/coder-images:java${data.coder_parameter.java_version.value}" docker_image = "gitea.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://git.bobert.me/anthorob/coder-templates.git//base?ref=main" source = "git::https://gitea.bobert.me/anthorob/coder-templates.git//base?ref=main"
docker_image = "registry.bobert.me/anthorob/coder-images:php${data.coder_parameter.php_version.value}" docker_image = "gitea.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://git.bobert.me/anthorob/coder-templates.git//base?ref=main" source = "git::https://gitea.bobert.me/anthorob/coder-templates.git//base?ref=main"
docker_image = "registry.bobert.me/anthorob/coder-images:python${data.coder_parameter.python_version.value}" docker_image = "gitea.bobert.me/anthorob/coder-images:python${data.coder_parameter.python_version.value}"
language_metadata = [ language_metadata = [
{ {