-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bob/2663-customize-query-alignment' of https://github.c…
…om/CDCgov/dibbs-query-connector into bob/2663-customize-query-alignment
- Loading branch information
Showing
5 changed files
with
50 additions
and
44 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,43 @@ | ||
name: CD | ||
|
||
on: | ||
merge_group: | ||
types: | ||
- checks_requested | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: Build Query Connector Image | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: "read" | ||
id-token: "write" | ||
packages: "write" | ||
steps: | ||
- name: Check Out Changes | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v3 | ||
working-directory: ./query-connector | ||
with: | ||
push: true | ||
tags: [main, latest] |
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,38 +1,16 @@ | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.6.9 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
args: [--fix] | ||
# Run the formatter. | ||
- id: ruff-format | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: pretty-format-json | ||
name: Pretty Format JSON | ||
args: [--autofix, --no-sort-keys] | ||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: "v9.12.0" | ||
hooks: | ||
- id: eslint | ||
name: ESLint for ECR Viewer | ||
files: ^containers/ecr-viewer/.*\.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx in containers/ecr-viewer | ||
types: [file] | ||
additional_dependencies: | ||
- [email protected] | ||
- eslint-config-next | ||
- eslint-config-prettier | ||
- "@typescript-eslint/parser" | ||
- "@typescript-eslint/eslint-plugin" | ||
- typescript | ||
- "@next/eslint-plugin-next" | ||
- eslint-plugin-unused-imports | ||
- eslint-plugin-jsdoc | ||
args: ["--config=./containers/ecr-viewer/.eslintrc.json", "--fix"] | ||
- id: eslint | ||
name: ESLint for TEFCA Viewer | ||
files: ^containers/tefca-viewer/.*\.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx | ||
name: ESLint | ||
files: ^query-connector/.*\.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx | ||
types: [file] | ||
additional_dependencies: | ||
- [email protected] | ||
|
@@ -44,30 +22,19 @@ repos: | |
- "@next/eslint-plugin-next" | ||
- eslint-plugin-unused-imports | ||
- eslint-plugin-jsdoc | ||
args: ["--config=./containers/tefca-viewer/.eslintrc.json", "--fix"] | ||
args: ["--config=./query-connector/.eslintrc.json", "--fix"] | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v4.0.0-alpha.8 | ||
hooks: | ||
- id: prettier | ||
name: Prettier | ||
types_or: [css, javascript, tsx, ts, yaml] | ||
- repo: local | ||
hooks: | ||
# run `terraform fmt` if tf files are modified and terraform is installed | ||
# when terraform is not installed, this check will succeed even if tf files | ||
# would not pass the format check | ||
- id: terraform-fmt | ||
name: terraform-fmt | ||
entry: bash -c 'if command -v terraform >/dev/null 2>&1; then terraform fmt -recursive -check operations; else exit 0; fi' | ||
language: system | ||
types: | ||
- terraform | ||
pass_filenames: false | ||
ci: | ||
autofix_commit_msg: | | ||
[pre-commit.ci] auto fixes from pre-commit hooks | ||
autofix_prs: true | ||
autoupdate_branch: "" | ||
autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate" | ||
autoupdate_schedule: weekly | ||
skip: [pretty-format-json, terraform-fmt] | ||
skip: [pretty-format-json] | ||
submodules: false |
File renamed without changes.
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
Empty file.