Skip to content

Commit

Permalink
update (#5)
Browse files Browse the repository at this point in the history
* update

* update

* update
  • Loading branch information
gitworkflows authored Aug 15, 2024
1 parent 0434283 commit ef02e9e
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cli-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
- uses: actions/checkout@v4

- name: Install codex
uses: khulnasoft/codex-install-action@v0.11.0
uses: khulnasoft/codex-install-action@main
with:
enable-cache: true

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/docker-image-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
khulnasoftcom/codex
khulnasoft/codex
tags: |
type=raw,value=${{ inputs.tag || github.ref_name }}
flavor: |
Expand All @@ -35,7 +35,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
khulnasoftcom/codex-root-user
khulnasoft/codex-root-user
tags: |
type=raw,value=${{ inputs.tag || github.ref_name }}
flavor: |
Expand All @@ -45,8 +45,8 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push default
uses: docker/build-push-action@v5
with:
Expand All @@ -72,7 +72,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
khulnasoftcom/codex
khulnasoft/codex
tags: |
type=raw,value=latest
flavor: |
Expand All @@ -90,7 +90,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
khulnasoftcom/codex-root-user
khulnasoft/codex-root-user
tags: |
type=raw,value=latest
flavor: |
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The easiest way to develop Codex is with Codex!

1. Install Codex:

curl -fsSL https://raw.githubusercontent.com/khulnasoft/codex/master/install.sh | bash
curl -fsSL https://raw.githubusercontent.com/khulnasoft/CodeX/master/codex | bash

2. Clone this repository:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The example below creates a development environment with `python 2.7` and `go 1.
Use the following install script to get the latest version of Codex:

```sh
curl -fsSL https://raw.githubusercontent.com/khulnasoft/codex/master/install.sh | bash
curl -fsSL https://raw.githubusercontent.com/khulnasoft/CodeX/master/codex | bash
```

Read more on the [Codex docs](https://www.khulnasoft/codex/docs/installing_codex/).
Expand Down
2 changes: 1 addition & 1 deletion codex.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This project uses [codex](https://github.com/khulnasoft/codex) to manage its dev

Install codex:
```sh
curl -fsSL https://raw.githubusercontent.com/khulnasoft/codex/master/install.sh | bash
curl -fsSL https://raw.githubusercontent.com/khulnasoft/CodeX/master/codex | bash
```

Start the codex shell:
Expand Down
2 changes: 1 addition & 1 deletion docs/app/docs/contributor-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This quickstart shows you how to install Codex, and use it to start a developmen
Use the following install script to get the latest version of Codex:

```bash
curl -fsSL https://raw.githubusercontent.com/khulnasoft/codex/master/install.sh | bash
curl -fsSL https://raw.githubusercontent.com/khulnasoft/CodeX/master/codex | bash
```

Codex requires the [Nix Package Manager](https://nixos.org/download.html). If Nix is not detected on your machine when running a command, Codex will automatically install it for you with the default settings for your OS. Don't worry: You can use Codex without needing to learn the Nix Language.
Expand Down
6 changes: 3 additions & 3 deletions docs/app/docs/installing_codex.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Select your OS below for the steps to install Codex.
Run the following install script as a *non-root user* to install the latest version of Codex:

```bash
curl -fsSL https://raw.githubusercontent.com/khulnasoft/codex/master/install.sh | bash
curl -fsSL https://raw.githubusercontent.com/khulnasoft/CodeX/master/codex | bash
```

Codex requires the [Nix Package Manager](https://nixos.org/download.html). If Nix is not detected when running a command, Codex will install it for you in single-user mode for Linux. Don't worry: You can use Codex without needing to learn the Nix Language.
Expand All @@ -28,7 +28,7 @@ If you would like to install Nix yourself, we recommend the [Determinate Nix Ins
Run the following install script to install the latest version of Codex:

```bash
curl -fsSL https://raw.githubusercontent.com/khulnasoft/codex/master/install.sh | bash
curl -fsSL https://raw.githubusercontent.com/khulnasoft/CodeX/master/codex | bash
```

Codex requires the [Nix Package Manager](https://nixos.org/download.html). If Nix is not detected when running a command, Codex will install it in multi-user mode for macOS. Don't worry: You can use Codex without needing to learn the Nix Language.
Expand Down Expand Up @@ -62,7 +62,7 @@ If you are running an older version of Windows, you may need to follow the [manu
Run the following script in your WSL2 terminal as a *non-root user* to install Codex.

```bash
curl -fsSL https://raw.githubusercontent.com/khulnasoft/codex/master/install.sh | bash
curl -fsSL https://raw.githubusercontent.com/khulnasoft/CodeX/master/codex | bash
```

Codex requires the [Nix Package Manager](https://nixos.org/download/). If Nix is not detected on your machine when running a command, Codex will automatically install it in single user mode for WSL2. Don't worry: You can use Codex without needing to learn the Nix Language.
Expand Down
2 changes: 1 addition & 1 deletion docs/translation/README-ko-KR.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Codex는 원래 [Khulnasoft](https://www.khulnasoft)에서 개발되었으며
다음 설치 스크립트를 사용하여 최신 버전의 Codex를 설치하세요:

```sh
curl -fsSL https://raw.githubusercontent.com/khulnasoft/codex/master/install.sh | bash
curl -fsSL https://raw.githubusercontent.com/khulnasoft/CodeX/master/codex | bash
```

자세한 내용은 [Codex 문서](https://www.khulnasoft/codex/docs/installing_codex/)를 참조하세요.
Expand Down
2 changes: 1 addition & 1 deletion docs/translation/README-zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Codex最初由 [Khulnasoft](https://www.khulnasoft) 进行开发,其内部由
使用以下安装脚本获取最新版本的 Codex:

```sh
curl -fsSL https://raw.githubusercontent.com/khulnasoft/codex/master/install.sh | bash
curl -fsSL https://raw.githubusercontent.com/khulnasoft/CodeX/master/codex | bash
```

[Codex 文档](https://www.khulnasoft/codex/docs/installing_codex/)中阅读更多内容。
Expand Down
2 changes: 1 addition & 1 deletion internal/codex/generate/tmpl/CodexImageDockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ENV PATH="/home/${CODEX_USER}/.nix-profile/bin:$PATH"

# Step 3: Installing codex
ENV CODEX_USE_VERSION=$CODEX_USE_VERSION
RUN wget --quiet --output-document=/dev/stdout https://get.khulnasoft/codex | bash -s -- -f
RUN wget --quiet --output-document=/dev/stdout https://raw.githubusercontent.com/khulnasoft/CodeX/master/codex | bash -s -- -f
RUN chown -R "${CODEX_USER}:${CODEX_USER}" /usr/local/bin/codex

# run a codex command to make launcher download codex binary
Expand Down
3 changes: 1 addition & 2 deletions internal/codex/generate/tmpl/CodexImageDockerfileRootUser
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ ENV PATH="/root/.nix-profile/bin:$PATH"

# Step 3: Installing codex
ENV CODEX_USE_VERSION=$CODEX_USE_VERSION
RUN wget --quiet --output-document=/dev/stdout https://get.khulnasoft/codex | bash -s -- -f
RUN wget --quiet --output-document=/dev/stdout https://raw.githubusercontent.com/khulnasoft/CodeX/master/codex -o codex | bash -s -- -f
# run a codex command to make launcher download codex binary
RUN codex version

CMD ["codex", "version", "-v"]
4 changes: 2 additions & 2 deletions internal/codex/generate/tmpl/dev.Dockerfile.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .RootUser }}FROM khulnasoftcom/codex-root-user:latest
{{- else }}FROM khulnasoftcom/codex:latest
{{- if .RootUser }}FROM khulnasoft/codex-root-user:latest
{{- else }}FROM khulnasoft/codex:latest
{{- end}}

# Installing your codex project
Expand Down
2 changes: 1 addition & 1 deletion internal/codex/generate/tmpl/prod.Dockerfile.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM khulnasoftcom/codex:latest
FROM khulnasoft/codex:latest

WORKDIR /code
USER root:root
Expand Down
2 changes: 1 addition & 1 deletion internal/codex/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (d *Codex) UninitializedSecrets(ctx context.Context) *envsec.Envsec {
},
IsDev: build.IsDev,
Stderr: d.stderr,
Store: &KhulnasoftAPIStore{},
Store: &jetstore.KhulnasoftAPIStore{},
WorkingDir: d.ProjectDir(),
}
}
Expand Down

0 comments on commit ef02e9e

Please sign in to comment.