-
-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
187 changed files
with
10,006 additions
and
18,411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
body: | ||
- type: input | ||
attributes: | ||
label: Operating System | ||
description: What operating system are you using? | ||
placeholder: "Example: macOS Big Sur" | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
attributes: | ||
label: Shell | ||
description: What shell are you using? | ||
placeholder: "Example: zsh 5.8.1" | ||
validations: | ||
required: true | ||
|
||
- type: dropdown | ||
attributes: | ||
label: Version | ||
description: What version of atuin are you running? | ||
multiple: false | ||
options: # how often will I forget to update this? a lot. | ||
- v17.0.0 (Default) | ||
- v16.0.0 | ||
- v15.0.0 | ||
- v14.0.1 | ||
- v14.0.0 | ||
- v13.0.1 | ||
- v13.0.0 | ||
- v12.0.0 | ||
- v11.0.0 | ||
- v0.10.0 | ||
- v0.9.1 | ||
- v0.9.0 | ||
- v0.8.1 | ||
- v0.8.0 | ||
- v0.7.2 | ||
- v0.7.1 | ||
- v0.7.0 | ||
- v0.6.4 | ||
- v0.6.3 | ||
default: 0 | ||
validations: | ||
required: true | ||
|
||
- type: checkboxes | ||
attributes: | ||
label: Self hosted | ||
description: Are you self hosting atuin server? | ||
options: | ||
- label: I am self hosting atuin server | ||
|
||
- type: checkboxes | ||
attributes: | ||
label: Search the issues | ||
description: Did you search the issues and discussions for your problem? | ||
options: | ||
- label: I checked that someone hasn't already asked about the same issue | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Behaviour | ||
description: "Please describe the issue - what you expected to happen, what actually happened" | ||
|
||
- type: textarea | ||
attributes: | ||
label: Logs | ||
description: "If possible, please include logs from atuin, especially if you self host the server - ATUIN_LOG=debug" | ||
|
||
- type: textarea | ||
attributes: | ||
label: Extra information | ||
description: "Anything else you'd like to add?" | ||
|
||
- type: checkboxes | ||
attributes: | ||
label: Code of Conduct | ||
description: The Code of Conduct helps create a safe space for everyone. We require | ||
that everyone agrees to it. | ||
options: | ||
- label: I agree to follow this project's [Code of Conduct](https://github.com/atuinsh/atuin/blob/main/CODE_OF_CONDUCT.md) | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
name: Bug report | ||
about: Unless you are absolutely certain this is a bug, please open a post on the support forum first. | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. ... | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Error logs** | ||
Please try and provide error logs where possible | ||
|
||
**Device (please complete the following information):** | ||
- OS: [e.g. macOS] | ||
- Shell [bash/zsh/fish/nu] | ||
- Version [e.g. 16.0.0] | ||
|
||
**Self hosted** | ||
If you are self hosting Atuin server, please detail your setup here. What version are you using, and how is it deployed? | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# I think this was a little aggressive, but maybe enable if | ||
# people ignore this. | ||
# blank_issues_enabled: false | ||
contact_links: | ||
- name: Support | ||
url: https://github.com/atuinsh/atuin/discussions/new?category=support | ||
about: Get community help and support with Atuin here! | ||
- name: Feature suggestion | ||
url: https://github.com/atuinsh/atuin/discussions/new?category=ideas | ||
about: Suggest an idea for Atuin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,142 @@ | ||
name: Build docker image | ||
name: build-docker | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
tags: | ||
- 'v*' | ||
|
||
permissions: | ||
packages: write | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
name: build and publish atuin image | ||
|
||
publish_x86: | ||
concurrency: | ||
group: ${{ github.ref }}-x86 | ||
cancel-in-progress: true | ||
permissions: | ||
packages: write | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
repository: atuinsh/atuin | ||
path: "./" | ||
|
||
- name: Setup mirror | ||
uses: self-actuated/hub-mirror@master | ||
|
||
- name: Check Out Repo | ||
uses: actions/checkout@v3 | ||
- name: Get Repo Owner | ||
id: get_repo_owner | ||
run: echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" > $GITHUB_ENV | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Login to container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: ghcr.io | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Get short sha | ||
id: shortsha | ||
run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
|
||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
- name: Release build | ||
id: release_build | ||
uses: docker/build-push-action@v4 | ||
with: | ||
images: ghcr.io/${{ github.repository }} | ||
outputs: "type=registry,push=true" | ||
platforms: linux/amd64 | ||
file: ./Dockerfile | ||
context: . | ||
provenance: false | ||
build-args: | | ||
Version=dev | ||
GitCommit=${{ steps.shortsha.outputs.short_sha }} | ||
tags: | | ||
type=ref,event=pr | ||
type=ref,event=branch | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
ghcr.io/${{ env.REPO_OWNER }}/atuin:${{ steps.shortsha.outputs.short_sha }}-amd64 | ||
publish_aarch64: | ||
concurrency: | ||
group: ${{ github.ref }}-aarch64 | ||
cancel-in-progress: true | ||
permissions: | ||
packages: write | ||
|
||
runs-on: actuated-arm64-4cpu-16gb | ||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
repository: atuinsh/atuin | ||
path: "./" | ||
|
||
- name: Setup mirror | ||
uses: self-actuated/hub-mirror@master | ||
|
||
- name: Get Repo Owner | ||
id: get_repo_owner | ||
run: echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" > $GITHUB_ENV | ||
|
||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to Docker Hub | ||
- name: Login to container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: ghcr.io | ||
|
||
- name: Get short sha | ||
id: shortsha | ||
run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
|
||
- name: Build and push | ||
id: docker_build | ||
- name: Release build | ||
id: release_build | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./ | ||
outputs: "type=registry,push=true" | ||
platforms: linux/arm64 | ||
file: ./Dockerfile | ||
builder: ${{ steps.buildx.outputs.name }} | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
platforms: linux/amd64 #,linux/arm64 | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
build-args: RUST_BACKTRACE=1 | ||
|
||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} | ||
context: . | ||
provenance: false | ||
build-args: | | ||
Version=dev | ||
GitCommit=${{ steps.shortsha.outputs.short_sha }} | ||
tags: | | ||
ghcr.io/${{ env.REPO_OWNER }}/atuin:${{ steps.shortsha.outputs.short_sha }}-aarch64 | ||
publish_manifest: | ||
runs-on: ubuntu-latest | ||
needs: [publish_x86, publish_aarch64] | ||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
repository: atuinsh/atuin | ||
path: "./" | ||
|
||
- name: Get Repo Owner | ||
id: get_repo_owner | ||
run: echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" > $GITHUB_ENV | ||
|
||
- name: Login to container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: ghcr.io | ||
|
||
- name: Get short sha | ||
id: shortsha | ||
run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
|
||
- name: Create manifest | ||
run: | | ||
docker manifest create ghcr.io/${{ env.REPO_OWNER }}/atuin:${{ steps.shortsha.outputs.short_sha }} \ | ||
--amend ghcr.io/${{ env.REPO_OWNER }}/atuin:${{ steps.shortsha.outputs.short_sha }}-amd64 \ | ||
--amend ghcr.io/${{ env.REPO_OWNER }}/atuin:${{ steps.shortsha.outputs.short_sha }}-aarch64 | ||
docker manifest annotate --arch amd64 --os linux ghcr.io/${{ env.REPO_OWNER }}/atuin:${{ steps.shortsha.outputs.short_sha }} ghcr.io/${{ env.REPO_OWNER }}/atuin:${{ steps.shortsha.outputs.short_sha }}-amd64 | ||
docker manifest annotate --arch arm64 --os linux ghcr.io/${{ env.REPO_OWNER }}/atuin:${{ steps.shortsha.outputs.short_sha }} ghcr.io/${{ env.REPO_OWNER }}/atuin:${{ steps.shortsha.outputs.short_sha }}-aarch64 | ||
docker manifest inspect ghcr.io/${{ env.REPO_OWNER }}/atuin:${{ steps.shortsha.outputs.short_sha }} | ||
docker manifest push ghcr.io/${{ env.REPO_OWNER }}/atuin:${{ steps.shortsha.outputs.short_sha }} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.