diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f93715e..95c01b6 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -37,6 +37,8 @@ jobs: env: COMMIT_SHORT_SHA: ${{ github.sha }} REPO: ${{ github.repository }} + CODER_URL: ${{ secrets.CODER_URL }} + CODER_SESSION_TOKEN: ${{ secrets.CODER_SESSION_TOKEN }} steps: - uses: actions/checkout@v4 @@ -53,6 +55,8 @@ jobs: display_name=$(echo "$name" | sed "s/.*/\u&/" | sed "s/-/ /g") echo "==> deploying $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 + coder templates push -d "$dir" --name "$short_sha" --message "Auto-deployed from $REPO on commit $short_sha" --yes "$name" \ + --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