Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Docker Build

on:
pull_request:
branches: ['**']
paths-ignore:
- 'docs/**'
- '.gitignore'
- 'LICENSE'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
docker-build:
name: Docker image builds
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Read Node version
run: echo "NODE_VERSION=$(tr -d 'v' < .nvmrc)" >> "$GITHUB_ENV"

- name: Build production image (not pushed)
run: docker build --target production --build-arg NODE_VERSION="$NODE_VERSION" .
5 changes: 3 additions & 2 deletions terraform/repository/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ module "repository" {
required_approving_review_count = 1
}

# Require branches to be up to date before merging; no hardcoded check names.
# Require branches to be up to date and the listed checks to pass before merging.
required_status_checks = {
strict = true
strict = true
contexts = ["Docker image builds"]
}
}
}
Expand Down
Loading