36 lines
902 B
YAML
36 lines
902 B
YAML
name: Build Docker image
|
|
|
|
# **What it does**: This builds our Docker container.
|
|
# **Why we have it**: We don't use the Docker container internally, but other teams depend on our Docker container.
|
|
# **Who does it impact**: Enterprise customers.
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
paths:
|
|
- .npmrc
|
|
- Dockerfile
|
|
- package.json
|
|
- package-lock.json
|
|
- next.config.js
|
|
- tsconfig.json
|
|
- next-env.d.ts
|
|
- .github/workflows/build-docker-image.yml
|
|
|
|
env:
|
|
CI: true
|
|
|
|
jobs:
|
|
build:
|
|
# Do not run this job for translations PRs
|
|
if: ${{ github.head_ref != 'translations' && github.ref != 'refs/heads/translations' }}
|
|
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repo
|
|
uses: actions/checkout@1e204e9a9253d643386038d443f96446fa156a97
|
|
- name: Build the container
|
|
run: docker build --target production .
|