8000 Merge branch 'master' into include_exclude_options · joeally/postgres-meta@2f15e42 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f15e42

Browse files
committed
Merge branch 'master' into include_exclude_options
2 parents f12023d + 35493f8 commit 2f15e42

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2756
-1558
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
11
version: 2
22
updates:
3-
4-
# github actions
5-
63
- package-ecosystem: "github-actions"
74
directory: "/"
85
schedule:
9-
interval: "weekly"
10-
open-pull-requests-limit: 5
11-
labels: ["github-actions", "dependencies", "pr/automerge"]
12-
13-
# npm
14-
6+
interval: "daily"
157
- package-ecosystem: "npm"
168
directory: "/"
179
schedule:
18-
interval: "weekly"
19-
open-pull-requests-limit: 15
20-
labels: ["npm", "dependencies", "pr/automerge"]
10+
interval: "daily"

.github/workflows/automerge.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Dependabot auto-merge
2+
on: pull_request
3+
4+
permissions:
5+
contents: write
6+
pull-requests: write
7+
8+
jobs:
9+
dependabot:
10+
runs-on: ubuntu-latest
11+
if: ${{ github.actor == 'dependabot[bot]' }}
12+
steps:
13+
- name: Dependabot metadata
14+
id: metadata
15+
uses: dependabot/fetch-metadata@v1
16+
with:
17+
github-token: "${{ secrets.GITHUB_TOKEN }}"
18+
19+
- name: Approve a PR
20+
if: ${{ steps.metadata.outputs.update-type != 'version-update:semver-major' && !startswith(steps.metadata.outputs.new_version, '0.') }}
21+
run: gh pr review --approve "$PR_URL"
22+
env:
23+
PR_URL: ${{ github.event.pull_request.html_url }}
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
26+
- name: Enable auto-merge for Dependabot PRs
27+
if: ${{ steps.metadata.outputs.update-type != 'version-update:semver-major' && !startswith(steps.metadata.outputs.new_version, '0.') }}
28+
run: gh pr merge --auto --squash "$PR_URL"
29+
env:
30+
PR_URL: ${{ github.event.pull_request.html_url }}
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020

2121
- run: |
2222
npm clean-install
23+
npm run check
2324
npm run test
2425
2526
prettier-check:

.github/workflows/mirror.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Mirror Image
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "Image tag"
8+
required: true
9+
type: string
10+
11+
jobs:
12+
mirror:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
steps:
18+
- uses: docker/login-action@v2
19+
with:
20+
registry: public.ecr.aws
21+
username: ${{ secrets.PROD_ACCESS_KEY_ID }}
22+
password: ${{ secrets.PROD_SECRET_ACCESS_KEY }}
23+
- uses: docker/login-action@v2
24+
with:
25+
registry: ghcr.io
26+
username: ${{ github.actor }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
28+
- uses: akhilerm/tag-push-action@v2.1.0
29+
with:
30+
src: docker.io/supabase/postgres-meta:${{ inputs.version }}
31+
dst: |
32+
public.ecr.aws/supabase/postgres-meta:${{ inputs.version }}
33+
ghcr.io/supabase/postgres-meta:${{ inputs.version }}

.github/workflows/release.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
npm run build
2626
2727
- id: semantic-release
28-
uses: cycjimmy/semantic-release-action@v2
28+
uses: cycjimmy/semantic-release-action@v3
2929
with:
3030
semantic_version: 18
3131
env:
@@ -67,13 +67,17 @@ jobs:
6767
- semantic-release
6868
if: needs.semantic-release.outputs.new-release-published == 'true'
6969
runs-on: ubuntu-latest
70+
permissions:
71+
contents: read
72+
packages: write
7073
steps:
7174
- id: meta
7275
uses: docker/metadata-action@v4
7376
with:
7477
images: |
7578
supabase/postgres-meta
76-
public.ecr.aws/t3w2s2c9/postgres-meta
79+
public.ecr.aws/supabase/postgres-meta
80+
ghcr.io/supabase/postgres-meta
7781
tags: |
7882
type=raw,value=v${{ needs.semantic-release.outputs.new-release-version }}
7983
@@ -95,6 +99,13 @@ jobs:
9599
username: ${{ secrets.PROD_ACCESS_KEY_ID }}
96100
password: ${{ secrets.PROD_SECRET_ACCESS_KEY }}
97101

102+
- name: Login to GHCR
103+
uses: docker/login-action@v2
104+
with:
105+
registry: ghcr.io
106+
username: ${{ github.actor }}
107+
password: ${{ secrets.GITHUB_TOKEN }}
108+
98109
- uses: docker/build-push-action@v3
99110
with:
100111
push: true

.kodiak.toml

Lines changed: 0 additions & 20 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,4 @@ Apache 2.0
109109
We are building the features of Firebase using enterprise-grade, open source products. We support existing communities wherever possible, and if the products don’t exist we build them and open source them ourselves.
110110

111111
[![New Sponsor](https://user-images.githubusercontent.com/10214025/90518111-e74bbb00-e198-11ea-8f88-c9e3c1aa4b5b.png)](https://github.com/sponsors/supabase)
112+

0 commit comments

Comments
 (0)
0