Mirror of
0
fork

Configure Feed

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

Merge pull request #65 from trueberryless-org/netlify

netlify

authored by

trueberryless and committed by
GitHub
4cd884c7 7cb8032b

+5 -307
+5
.changeset/dark-shoes-open.md
··· 1 + --- 2 + "starlight-cooler-credit-docs": patch 3 + --- 4 + 5 + Netlify
-11
.dockerignore
··· 1 - Dockerfile 2 - .dockerignore 3 - **/node_modules/ 4 - **/.git 5 - README.md 6 - npm-debug.log 7 - .coverage 8 - .coverage.* 9 - .env 10 - .aws 11 - .next
-217
.github/workflows/deployment.yaml
··· 1 - name: Deployment 2 - 3 - on: 4 - push: 5 - branches: [main] 6 - workflow_dispatch: 7 - 8 - concurrency: 9 - group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} 10 - cancel-in-progress: true 11 - 12 - env: 13 - REGISTRY: docker.io 14 - IMAGE_OWNER: trueberryless 15 - IMAGE_NAME: starlight-cooler-credit 16 - NODE_VERSION: 20 17 - 18 - jobs: 19 - changes: 20 - name: Filter 21 - runs-on: ubuntu-latest 22 - outputs: 23 - docs: ${{ steps.filter.outputs.docs }} 24 - steps: 25 - - name: Check out the repo 26 - uses: actions/checkout@v4 27 - 28 - - uses: dorny/paths-filter@v3 29 - id: filter 30 - with: 31 - filters: | 32 - docs: 33 - - 'docs/**' 34 - 35 - changesets: 36 - name: Changesets 37 - runs-on: ubuntu-latest 38 - outputs: 39 - hasChangesets: ${{ steps.changesets.outputs.hasChangesets }} 40 - permissions: 41 - contents: write 42 - pull-requests: write 43 - steps: 44 - - name: Generate GitHub App token 45 - id: generate_token 46 - uses: tibdex/github-app-token@v2.1.0 47 - with: 48 - app_id: ${{ secrets.BOT_APP_ID }} 49 - private_key: ${{ secrets.BOT_PRIVATE_KEY }} 50 - 51 - - name: Checkout Repo 52 - uses: actions/checkout@v4 53 - 54 - - name: Setup PNPM 55 - uses: pnpm/action-setup@v3 56 - 57 - - name: Setup Node 58 - uses: actions/setup-node@v4 59 - with: 60 - node-version: ${{ env.NODE_VERSION }} 61 - cache: "pnpm" 62 - 63 - - name: Install Dependencies 64 - run: pnpm i 65 - 66 - - name: Create Release Pull Request 67 - uses: changesets/action@v1 68 - id: changesets 69 - with: 70 - version: pnpm run version 71 - commit: "chore: release" 72 - title: "[ci] release" 73 - env: 74 - GITHUB_TOKEN: ${{ steps.generate_token.outputs.token}} 75 - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} 76 - 77 - - name: Get published version 78 - if: steps.changesets.outputs.hasChangesets == 'true' 79 - run: | 80 - git checkout changeset-release/main 81 - VERSION=$(node -p "require('./docs/package.json').version") 82 - git commit --amend -m "chore(release): publish v$VERSION" --no-edit 83 - git push origin changeset-release/main:changeset-release/main --force 84 - 85 - image-tag: 86 - name: Image Tag 87 - runs-on: ubuntu-latest 88 - outputs: 89 - IMAGE_TAG: ${{ env.IMAGE_TAG }} 90 - steps: 91 - - name: Check out the repo 92 - uses: actions/checkout@v4 93 - 94 - - name: Read version from package.json 95 - id: get_version 96 - run: | 97 - VERSION=$(jq -r '.version' docs/package.json) 98 - echo "IMAGE_TAG=$VERSION" >> $GITHUB_ENV 99 - 100 - deployment: 101 - needs: [changes, changesets, image-tag] 102 - if: > 103 - ( 104 - needs.changesets.outputs.hasChangesets == 'false' && 105 - ( 106 - contains(github.event.head_commit.message, 'deploy') || 107 - contains(github.event.head_commit.message, '[ci] release') 108 - ) 109 - ) || 110 - github.event_name == 'workflow_dispatch' 111 - runs-on: ubuntu-latest 112 - permissions: 113 - contents: write 114 - steps: 115 - - name: Check out the repo 116 - uses: actions/checkout@v4 117 - with: 118 - fetch-depth: 0 119 - 120 - - name: Setup PNPM 121 - uses: pnpm/action-setup@v3 122 - with: 123 - package_json_file: ./docs/package.json 124 - 125 - - name: Setup Node 126 - uses: actions/setup-node@v4 127 - with: 128 - node-version: ${{ env.NODE_VERSION }} 129 - cache: pnpm 130 - cache-dependency-path: ./pnpm-lock.yaml 131 - 132 - - name: Install dependencies 133 - run: pnpm install 134 - shell: bash 135 - working-directory: ./docs 136 - 137 - - name: Build Website 138 - run: pnpm run build 139 - shell: bash 140 - working-directory: ./docs 141 - 142 - - name: Set up Docker Buildx 143 - uses: docker/setup-buildx-action@v3 144 - 145 - - name: Log in to Docker Hub 146 - uses: docker/login-action@v3 147 - with: 148 - username: ${{ secrets.DOCKER_USERNAME }} 149 - password: ${{ secrets.DOCKER_PASSWORD }} 150 - 151 - - name: Extract metadata (tags, labels) for Docker 152 - id: meta 153 - uses: docker/metadata-action@v5 154 - with: 155 - images: ${{ env.REGISTRY }}/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }} 156 - 157 - - name: Build and push Docker image 158 - uses: docker/build-push-action@v6 159 - with: 160 - context: . 161 - push: true 162 - tags: | 163 - ${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:${{ needs.image-tag.outputs.IMAGE_TAG }} 164 - ${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:latest 165 - labels: ${{ steps.meta.outputs.labels }} 166 - 167 - - name: Update deployment.yaml file 168 - run: | 169 - yq eval '.spec.template.spec.containers[0].image = "${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:${{ needs.image-tag.outputs.IMAGE_TAG }}"' -i manifest/deployment.yaml 170 - 171 - - uses: stefanzweifel/git-auto-commit-action@v4 172 - with: 173 - commit_message: update deployment.json container image (automated) 174 - 175 - release: 176 - name: Release 177 - needs: [image-tag, deployment] 178 - runs-on: ubuntu-latest 179 - permissions: 180 - contents: write 181 - steps: 182 - - name: Check out the repo 183 - uses: actions/checkout@v4 184 - 185 - - id: extract-changelog 186 - uses: sean0x42/markdown-extract@v2.1.0 187 - with: 188 - file: docs/CHANGELOG.md 189 - pattern: ${{ needs.image-tag.outputs.IMAGE_TAG }} 190 - 191 - - uses: ncipollo/release-action@v1 192 - id: create_release 193 - with: 194 - tag: ${{ env.IMAGE_NAME }}-docs@${{ needs.image-tag.outputs.IMAGE_TAG }} 195 - makeLatest: false 196 - body: ${{ steps.extract-changelog.outputs.markdown }} 197 - skipIfReleaseExists: true 198 - 199 - - name: Check if release was created 200 - id: check_release 201 - run: | 202 - if [ -z "${{ steps.create_release.outputs.html_url }}" ]; then 203 - echo "RELEASE_SKIPPED=true" >> $GITHUB_ENV 204 - else 205 - echo "RELEASE_SKIPPED=false" >> $GITHUB_ENV 206 - fi 207 - 208 - - name: Discord notification 209 - if: env.RELEASE_SKIPPED == 'false' 210 - env: 211 - DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }} 212 - uses: Ilshidur/action-discord@0.3.2 213 - with: 214 - args: | 215 - # ${{ env.IMAGE_NAME }}@${{ needs.image-tag.outputs.IMAGE_TAG }} 216 - 217 - ${{ steps.extract-changelog.outputs.markdown }}
-7
Dockerfile
··· 1 - FROM node:20-alpine AS runtime 2 - WORKDIR /app 3 - COPY /docs/dist ./dist 4 - EXPOSE 80 5 - ENV HOST=0.0.0.0 6 - ENV PORT=80 7 - CMD ["node", "dist/server/entry.mjs"]
-12
manifest/certificate.yaml
··· 1 - apiVersion: cert-manager.io/v1 2 - kind: Certificate 3 - metadata: 4 - name: starlight-cooler-credit 5 - namespace: starlight-cooler-credit 6 - spec: 7 - secretName: starlight-cooler-credit 8 - issuerRef: 9 - name: acme-issuer 10 - kind: ClusterIssuer 11 - dnsNames: 12 - - "starlight-cooler-credit.trueberryless.org"
-21
manifest/deployment.yaml
··· 1 - apiVersion: apps/v1 2 - kind: Deployment 3 - metadata: 4 - name: starlight-cooler-credit 5 - namespace: starlight-cooler-credit 6 - labels: 7 - app: starlight-cooler-credit 8 - spec: 9 - replicas: 3 10 - selector: 11 - matchLabels: 12 - app: starlight-cooler-credit 13 - template: 14 - metadata: 15 - labels: 16 - app: starlight-cooler-credit 17 - spec: 18 - containers: 19 - - name: starlight-cooler-credit 20 - image: "trueberryless/starlight-cooler-credit:0.2.6" 21 - imagePullPolicy: Always
-22
manifest/ingress.yaml
··· 1 - apiVersion: networking.k8s.io/v1 2 - kind: Ingress 3 - metadata: 4 - name: starlight-cooler-credit 5 - namespace: starlight-cooler-credit 6 - spec: 7 - rules: 8 - - host: starlight-cooler-credit.trueberryless.org 9 - http: 10 - paths: 11 - - path: / 12 - pathType: Prefix 13 - backend: 14 - service: 15 - name: starlight-cooler-credit 16 - port: 17 - number: 80 18 - 19 - tls: 20 - - hosts: 21 - - starlight-cooler-credit.trueberryless.org 22 - secretName: starlight-cooler-credit
-4
manifest/namespace.yaml
··· 1 - apiVersion: v1 2 - kind: Namespace 3 - metadata: 4 - name: starlight-cooler-credit
-13
manifest/service.yaml
··· 1 - apiVersion: v1 2 - kind: Service 3 - metadata: 4 - name: starlight-cooler-credit 5 - namespace: starlight-cooler-credit 6 - annotations: 7 - cert-manager.io/issuer: acme-issuer 8 - spec: 9 - selector: 10 - app: starlight-cooler-credit 11 - ports: 12 - - name: http 13 - port: 80