Skip to content

Commit

Permalink
1.0.0-alpha.1 (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Sep 10, 2023
1 parent 080e540 commit acba83e
Show file tree
Hide file tree
Showing 159 changed files with 6,256 additions and 5,114 deletions.
15 changes: 15 additions & 0 deletions .gitbook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root:
./docs/
redirects:
pantry: pantry.md
shell-integration: shell-integration.md
shellcode: shell-integration.md
getting-started: run/anywhere/terminals.md
quickstart: run/anywhere/terminals.md
installing-w/out-brew: run/anywhere/terminals.md
docker: run/anywhere/docker.md
ci-cd: run/anywhere/ci-cd.md
scripts: run/anywhere/scripts.md
editors: run/anywhere/editors.md
tea-install: tea-install.md
support: support.md
9 changes: 9 additions & 0 deletions .github/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM debian:buster-slim as stage0
COPY ./products /tea
RUN cp /tea/$(uname)+$(uname -m) /usr/local/bin/tea
RUN tea integrate

FROM debian:buster-slim as stage1
COPY --from=stage0 /usr/local/bin/tea /usr/local/bin/tea
COPY --from=stage0 /root/.bash_profile /root/.bash_profile
CMD ["bash"]
18 changes: 0 additions & 18 deletions .github/actions/cache/action.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .github/markdownlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ MD024: false
MD013: false

# some titles end in 'etc.'
MD026: false
MD026: false

# gitbook provides its own top-level heading so we use `#` as `##`
MD025: false
22 changes: 22 additions & 0 deletions .github/workflows/cd.brew.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: cd·brew

on:
release:
types:
- published

concurrency:
group: cd/docker/${{ github.event.release.tag_name }}
cancel-in-progress: true

jobs:
bump-tap:
needs: release
runs-on: ubuntu-latest
steps:
- uses: aurelien-baudet/workflow-dispatch@v2
with:
workflow: bump.yml
repo: teaxyz/homebrew-pkgs
ref: main
token: ${{secrets.TEMP_JACOBS_GITHUB_PAT}}
31 changes: 27 additions & 4 deletions .github/workflows/cd.docker.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: CD·docker
name: cd·docker

on:
release:
types:
- created
- published

concurrency:
group: docker/${{ github.event.release.tag_name }}
Expand All @@ -17,7 +17,30 @@ jobs:
build-and-push-image:
runs-on: ubuntu-latest
steps:
- uses: robinraju/release-downloader@v1
with:
releaseId: ${{ github.event.release.id }}

- name: Unpack Binaries
run: |
mkdir products
for filename in tea-*+*+*.tar.xz; do
tar xJf $filename
result="${filename#*+}"
result="${result%.tar.xz}"
mv tea products/$result
rm $filename
done
mv products/darwin+x86-64 products/Darwin+x86_64
mv products/darwin+aarch64 products/Darwin+arm64
mv products/linux+x86-64 products/Linux+x86_64
mv products/linux+aarch64 products/Linux+arm64
- uses: actions/checkout@v3
with:
path: src

- name: log in to github pkgs
uses: docker/login-action@v2
Expand Down Expand Up @@ -50,12 +73,12 @@ jobs:

- name: docker/buildx
run: |
for x in $(echo "${{ steps.meta.outputs.tags}}" | tr '\n' ' ');
for x in $(echo "${{ steps.meta.outputs.tags }}" | tr '\n' ' ');
do tags="$tags --tag $x";
done
docker buildx build \
--push \
$tags \
--platform linux/amd64,linux/arm64 \
--file Dockerfile \
--file ./src/.github/Dockerfile \
.
35 changes: 0 additions & 35 deletions .github/workflows/cd.npm.yml

This file was deleted.

11 changes: 9 additions & 2 deletions .github/workflows/vx-tagger.yml → .github/workflows/cd.vx.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
name: cd·vx

on:
release:
types:
- created
- edited
- published

concurrency:
group: cd/vx/${{ github.event.release.tag_name }}
cancel-in-progress: true

permissions:
contents: write

jobs:
retag:
runs-on: ubuntu-latest
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/cd.www.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: cd·www

# the binaries for curl tea.xyz/$(uname)/$(uname -m)

on:
release:
types:
- published

concurrency:
group: cd/www/${{ github.event.release.tag_name }}
cancel-in-progress: true

jobs:
www-upload:
runs-on: ubuntu-latest
steps:
- uses: robinraju/release-downloader@v1
with:
releaseId: ${{ github.event.release.id }}

- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Unpack Binaries
run: |
for filename in tea-*+*+*.tar.xz; do
tar xJf $filename
result="${filename#*+}"
result="${result%.tar.xz}"
mv tea tea-$result
rm $filename
done
- name: Upload to S3
run: |
aws s3 cp tea-darwin+aarch64 s3://www.tea.xyz/Darwin/arm64 $FLAGS
aws s3 cp tea-darwin+x86-64 s3://www.tea.xyz/Darwin/x86_64 $FLAGS
aws s3 cp tea-linux+aarch64 s3://www.tea.xyz/Linux/arm64 $FLAGS
aws s3 cp tea-linux+aarch64 s3://www.tea.xyz/Linux/aarch64 $FLAGS # some linuxen say this instead
aws s3 cp tea-linux+x86-64 s3://www.tea.xyz/Linux/x86_64 $FLAGS
env:
FLAGS: --metadata-directive REPLACE --cache-control "max-age=3600, must-revalidate"

- name: Invalidate CloudFront
run:
aws cloudfront create-invalidation
--distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }}
--paths $STATIC_PATHS
env:
STATIC_PATHS: >-
/Darwin/arm64
/Darwin/x86_64
/Linux/arm64
/Linux/aarch64
/Linux/x86_64
Loading

0 comments on commit acba83e

Please sign in to comment.