Consolidate router components #3444
Workflow file for this run
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
name: database | |
on: | |
pull_request: | |
branches: [master] | |
permissions: # added using https://github.com/step-security/secure-workflows | |
contents: read | |
jobs: | |
docker_build: | |
if: ${{ github.event.type }} == "PullRequest" | |
runs-on: ubuntu-latest | |
steps: | |
# See https://docs.stepsecurity.io/harden-runner/getting-started/ for instructions on | |
# configuring harden-runner and identifying allowed endpoints. | |
- name: Harden Runner | |
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
auth.docker.io:443 | |
github.com:443 | |
production.cloudflare.docker.com:443 | |
registry-1.docker.io:443 | |
# For subfolders, currently a full checkout is required. | |
# See: https://github.com/marketplace/actions/build-and-push-docker-images#path-context | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
fetch-depth: 0 | |
- name: Build database image | |
run: | | |
deploy/scripts/build.py --components database | |
shell: bash | |
- name: Image digest | |
run: | | |
docker image inspect combine_database:latest -f '{{json .Id}}' | |
shell: bash |