Mirror of
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #11 from trueberryless-org/update-template-files

[ci] sync template files

authored by

trueberryless and committed by
GitHub
df4c24e9 d1b5fb57

+336 -18
+8
.changeset/README.md
··· 1 + # Changesets 2 + 3 + Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works 4 + with multi-package repos, or single-package repos to help you version and publish your code. You can 5 + find the full documentation for it [in our repository](https://github.com/changesets/changesets) 6 + 7 + We have a quick list of common questions to get you started engaging with this project in 8 + [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
+14
.changeset/config.json
··· 1 + { 2 + "$schema": "https://unpkg.com/@changesets/config@3.0.3/schema.json", 3 + "changelog": [ 4 + "@changesets/changelog-github", 5 + { "repo": "trueberryless-org/blog" } 6 + ], 7 + "commit": false, 8 + "fixed": [], 9 + "linked": [], 10 + "access": "public", 11 + "baseBranch": "main", 12 + "updateInternalDependencies": "patch", 13 + "ignore": [] 14 + }
+202
.github/workflows/deployment.yaml
··· 1 + name: Deployment 2 + 3 + on: 4 + push: 5 + branches: [main] 6 + workflow_dispatch: 7 + 8 + # Automatically cancel in-progress actions on the same branch 9 + concurrency: 10 + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} 11 + cancel-in-progress: true 12 + 13 + env: 14 + REGISTRY: docker.io 15 + IMAGE_OWNER: trueberryless 16 + IMAGE_NAME: blog 17 + NODE_VERSION: 20 18 + 19 + jobs: 20 + changes: 21 + name: Filter 22 + runs-on: ubuntu-latest 23 + outputs: 24 + starlight: ${{ steps.filter.outputs.starlight }} 25 + steps: 26 + - name: Check out the repo 27 + uses: actions/checkout@v4 28 + 29 + - uses: dorny/paths-filter@v3 30 + id: filter 31 + with: 32 + filters: | 33 + starlight: 34 + - 'starlight/**' 35 + 36 + changesets: 37 + name: Changesets 38 + runs-on: ubuntu-latest 39 + outputs: 40 + hasChangesets: ${{ steps.changesets.outputs.hasChangesets }} 41 + permissions: 42 + contents: write 43 + pull-requests: write 44 + steps: 45 + - name: Checkout Repo 46 + uses: actions/checkout@v4 47 + 48 + - name: Setup PNPM 49 + uses: pnpm/action-setup@v3 50 + 51 + - name: Setup Node 52 + uses: actions/setup-node@v4 53 + with: 54 + node-version: ${{ env.NODE_VERSION }} 55 + cache: "pnpm" 56 + 57 + - name: Install Dependencies 58 + run: pnpm i 59 + 60 + - name: Create Release Pull Request 61 + id: changesets 62 + uses: changesets/action@v1 63 + with: 64 + commit: "[ci] release" 65 + title: "[ci] release" 66 + env: 67 + GITHUB_TOKEN: ${{ secrets.PUBLIC_GITHUB_TOKEN }} 68 + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} 69 + 70 + image-tag: 71 + name: Image Tag 72 + runs-on: ubuntu-latest 73 + outputs: 74 + IMAGE_TAG: ${{ env.IMAGE_TAG }} 75 + steps: 76 + - name: Check out the repo 77 + uses: actions/checkout@v4 78 + 79 + - name: Read version from package.json 80 + id: get_version 81 + run: | 82 + VERSION=$(jq -r '.version' starlight/package.json) 83 + echo "IMAGE_TAG=$VERSION" >> $GITHUB_ENV 84 + 85 + deployment: 86 + needs: [changes, changesets, image-tag] 87 + if: > 88 + ( 89 + needs.changesets.outputs.hasChangesets == 'false' && 90 + ( 91 + contains(github.event.head_commit.message, 'deploy') || 92 + contains(github.event.head_commit.message, '[ci] release') 93 + ) 94 + ) || 95 + github.event_name == 'workflow_dispatch' 96 + runs-on: ubuntu-latest 97 + permissions: 98 + contents: write 99 + steps: 100 + - name: Check out the repo 101 + uses: actions/checkout@v4 102 + with: 103 + fetch-depth: 0 104 + 105 + - name: Setup PNPM 106 + uses: pnpm/action-setup@v3 107 + with: 108 + package_json_file: ./starlight/package.json 109 + 110 + - name: Setup Node 111 + uses: actions/setup-node@v4 112 + with: 113 + node-version: ${{ env.NODE_VERSION }} 114 + cache: pnpm 115 + cache-dependency-path: ./pnpm-lock.yaml 116 + 117 + - name: Install dependencies 118 + run: pnpm install 119 + shell: bash 120 + working-directory: ./starlight 121 + 122 + - name: Build Website 123 + run: pnpm run build 124 + shell: bash 125 + working-directory: ./starlight 126 + 127 + - name: Set up Docker Buildx 128 + uses: docker/setup-buildx-action@v3 129 + 130 + - name: Log in to Docker Hub 131 + uses: docker/login-action@v3 132 + with: 133 + username: ${{ secrets.DOCKER_USERNAME }} 134 + password: ${{ secrets.DOCKER_PASSWORD }} 135 + 136 + - name: Extract metadata (tags, labels) for Docker 137 + id: meta 138 + uses: docker/metadata-action@v5 139 + with: 140 + images: ${{ env.REGISTRY }}/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }} 141 + 142 + - name: Build and push Docker image 143 + uses: docker/build-push-action@v6 144 + with: 145 + context: . 146 + push: true 147 + tags: | 148 + ${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:${{ needs.image-tag.outputs.IMAGE_TAG }} 149 + ${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:latest 150 + labels: ${{ steps.meta.outputs.labels }} 151 + 152 + - name: Update deployment.yaml file 153 + run: | 154 + yq eval '.spec.template.spec.containers[0].image = "${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:${{ needs.image-tag.outputs.IMAGE_TAG }}"' -i manifest/deployment.yaml 155 + 156 + - uses: stefanzweifel/git-auto-commit-action@v4 157 + with: 158 + commit_message: update deployment.json container image (automated) 159 + 160 + release: 161 + name: Release 162 + needs: [image-tag, deployment] 163 + runs-on: ubuntu-latest 164 + permissions: 165 + contents: write 166 + steps: 167 + - name: Check out the repo 168 + uses: actions/checkout@v4 169 + 170 + - id: extract-changelog 171 + uses: sean0x42/markdown-extract@v2.1.0 172 + with: 173 + file: starlight/CHANGELOG.md 174 + pattern: ${{ needs.image-tag.outputs.IMAGE_TAG }} 175 + 176 + - uses: ncipollo/release-action@v1 177 + id: create_release 178 + with: 179 + tag: ${{ env.IMAGE_NAME }}-docs@${{ needs.image-tag.outputs.IMAGE_TAG }} 180 + makeLatest: true 181 + body: ${{ steps.extract-changelog.outputs.markdown }} 182 + skipIfReleaseExists: true 183 + 184 + - name: Check if release was created 185 + id: check_release 186 + run: | 187 + if [ -z "${{ steps.create_release.outputs.html_url }}" ]; then 188 + echo "RELEASE_SKIPPED=true" >> $GITHUB_ENV 189 + else 190 + echo "RELEASE_SKIPPED=false" >> $GITHUB_ENV 191 + fi 192 + 193 + - name: Discord notification 194 + if: env.RELEASE_SKIPPED == 'false' 195 + env: 196 + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }} 197 + uses: Ilshidur/action-discord@0.3.2 198 + with: 199 + args: | 200 + # ${{ env.IMAGE_NAME }}@${{ needs.image-tag.outputs.IMAGE_TAG }} 201 + 202 + ${{ steps.extract-changelog.outputs.markdown }}
+40
.github/workflows/release.yaml
··· 1 + name: Release 2 + 3 + on: 4 + push: 5 + branches: [main] 6 + 7 + jobs: 8 + release: 9 + name: Release 10 + if: ${{ github.repository_owner == 'trueberryless-org' }} 11 + permissions: 12 + contents: write 13 + pull-requests: write 14 + runs-on: ubuntu-latest 15 + steps: 16 + - name: Checkout Repo 17 + uses: actions/checkout@v4 18 + with: 19 + fetch-depth: 0 20 + 21 + - name: Setup PNPM 22 + uses: pnpm/action-setup@v3 23 + 24 + - name: Setup Node 25 + uses: actions/setup-node@v4 26 + with: 27 + node-version: 20 28 + cache: "pnpm" 29 + 30 + - name: Install Dependencies 31 + run: pnpm i 32 + 33 + - name: Create Release Pull Request 34 + uses: changesets/action@v1 35 + with: 36 + version: pnpm run version 37 + commit: "[ci] release" 38 + title: "[ci] release" 39 + env: 40 + GITHUB_TOKEN: ${{ secrets.PUBLIC_GITHUB_TOKEN }}
+36
.github/workflows/welcome-bot.yaml
··· 1 + name: WelcomeBot 2 + 3 + on: 4 + pull_request_target: 5 + branches: [main] 6 + types: [opened] 7 + 8 + permissions: 9 + pull-requests: write 10 + 11 + jobs: 12 + welcome: 13 + name: Welcome First-Time Contributors 14 + runs-on: ubuntu-latest 15 + steps: 16 + - uses: actions/checkout@v4 17 + - name: Convert Repository Name to Title Case 18 + id: convert_repo_name 19 + run: | 20 + REPO_NAME="${{ github.event.repository.name }}" 21 + TITLE_CASE_REPO_NAME=$(echo "$REPO_NAME" | sed 's/-/ /g' | awk '{for(i=1;i<=NF;i++) $i=toupper(substr($i,1,1)) tolower(substr($i,2))} 1') 22 + echo "title_case_repo_name=$TITLE_CASE_REPO_NAME" >> $GITHUB_ENV 23 + - uses: zephyrproject-rtos/action-first-interaction@7e6446f8439d8b4399169880c36a3a12b5747699 24 + with: 25 + repo-token: ${{ secrets.GITHUB_TOKEN }} 26 + pr-opened-message: | 27 + Hello! Thank you for opening your **first PR** to ${{ env.title_case_repo_name }}! ✨ 28 + 29 + Here’s what will happen next: 30 + 31 + 1. Our GitHub bots will run to check your changes. 32 + If they spot any issues you will see some error messages on this PR. 33 + Don’t hesitate to ask any questions if you’re not sure what these mean! 34 + 35 + 2. One or more of our maintainers will take a look and may ask you to make changes. 36 + We try to be responsive, but don’t worry if this takes a few days.
+8
.prettierrc
··· 1 + { 2 + "trailingComma": "es5", 3 + "tabWidth": 2, 4 + "semi": true, 5 + "singleQuote": false, 6 + "endOfLine": "lf", 7 + "htmlWhitespaceSensitivity": "css" 8 + }
+1 -11
Dockerfile
··· 1 - FROM node:lts AS build 2 - ENV PNPM_HOME="/pnpm" 3 - ENV PATH="$PNPM_HOME:$PATH" 4 - RUN corepack enable 5 - WORKDIR /app 6 - COPY /starlight/package.json . 7 - RUN pnpm i 8 - COPY /starlight . 9 - RUN pnpm run build 10 - 11 1 FROM httpd:2.4 AS runtime 12 - COPY --from=build /app/dist /usr/local/apache2/htdocs/ 2 + COPY /starlight/dist /usr/local/apache2/htdocs/ 13 3 EXPOSE 80 14 4 EXPOSE 443
+1 -1
LICENSE
··· 1 1 MIT License 2 2 3 - Copyright (c) 2024 trueberryless-org 3 + Copyright (c) 2024-present, trueberryless 4 4 5 5 Permission is hereby granted, free of charge, to any person obtaining a copy 6 6 of this software and associated documentation files (the "Software"), to deal
+1 -1
README.md
··· 54 54 55 55 ## License 56 56 57 - Licensed under the MIT license, Copyright © trueberryless-org. 57 + Licensed under the MIT license, Copyright © trueberryless. 58 58 59 59 See [LICENSE](/LICENSE) for more information.
+1 -1
manifest/certificate.yaml
··· 9 9 name: acme-issuer 10 10 kind: ClusterIssuer 11 11 dnsNames: 12 - - 'blog.trueberryless.org' 12 + - "blog.trueberryless.org"
+1 -1
manifest/deployment.yaml
··· 17 17 spec: 18 18 containers: 19 19 - name: blog 20 - image: 'trueberryless/blog:main-68e3eb4e102e87368ae37b63e41ded0647e7081c' 20 + image: "trueberryless/blog" 21 21 imagePullPolicy: Always
+3 -3
manifest/ingress.yaml
··· 17 17 number: 80 18 18 19 19 tls: 20 - - hosts: 21 - - blog.trueberryless.org 22 - secretName: blog 20 + - hosts: 21 + - blog.trueberryless.org 22 + secretName: blog
+20
package.json
··· 1 + { 2 + "name": "blog-monorepo", 3 + "homepage": "https://github.com/trueberryless-org/blog-monorepo", 4 + "bugs": { 5 + "url": "https://github.com/trueberryless-org/blog-monorepo/issues" 6 + }, 7 + "repository": { 8 + "type": "git", 9 + "url": "https://github.com/trueberryless-org/blog-monorepo.git" 10 + }, 11 + "license": "MIT", 12 + "author": "trueberryless <trueberryless@gmail.com> (https://trueberryless.org)", 13 + "scripts": { 14 + "version": "pnpm changeset version && pnpm i --no-frozen-lockfile" 15 + }, 16 + "devDependencies": { 17 + "@changesets/changelog-github": "^0.5.0", 18 + "@changesets/cli": "^2.27.9" 19 + } 20 + }