Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ executors:
simple-executor:
docker:
- image: cimg/base:2023.09
environment:
IN_DEV_CONTAINER: true
node-executor:
docker:
- image: cimg/node:20.17
environment:
IN_DEV_CONTAINER: true
in-container:
working_directory: ~/app
environment:
Expand Down Expand Up @@ -287,20 +294,28 @@ jobs:
#
# Jobs to run on `main` after we've confirmed the build is OK
# Publish cli via github releases
# Uses lightweight container - only needs curl, jq, bash
publish-github-release:
executor: in-container
executor: simple-executor
steps:
- darkcheckout
- setup-app
- checkout
- run:
name: Install jq
command: sudo apt-get update && sudo apt-get install -y jq
- attach_workspace: { at: "." }
- run: ./scripts/deployment/publish-github-release

# Publish VS Code Extension to the Marketplace
# Uses lightweight node container - only needs npm, vsce, jq
publish-vs-code-extension:
executor: in-container
executor: node-executor
steps:
- darkcheckout
- setup-app
- checkout
- run:
name: Install dependencies
command: |
sudo apt-get update && sudo apt-get install -y jq
sudo npm install -g @vscode/vsce
- attach_workspace: { at: "." }
- run: ./scripts/deployment/publish-vs-code-extension

Expand Down
5 changes: 3 additions & 2 deletions scripts/deployment/publish-github-release
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#! /usr/bin/env bash
. ./scripts/devcontainer/_assert-in-container "$0" "$@"
# Note: This script can run in lightweight CI containers (doesn't need dark-base)
# Requirements: curl, jq, bash

set -euo pipefail

Expand Down Expand Up @@ -86,7 +87,7 @@ fi
upload_url=$(echo $response | jq -r .upload_url | sed -e "s/{?name,label}//")

## Upload all files in the clis directory
FILES_DIR="/home/dark/app/clis"
FILES_DIR="${CLIS_DIR:-./clis}"
FILES_FOUND=false

for FILE_PATH in "$FILES_DIR"/*; do
Expand Down
3 changes: 2 additions & 1 deletion scripts/deployment/publish-vs-code-extension
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#! /usr/bin/env bash
. ./scripts/devcontainer/_assert-in-container "$0" "$@"
# Note: This script can run in lightweight CI containers (doesn't need dark-base)
# Requirements: npm, vsce (npm package), jq

set -euo pipefail

Expand Down