[deploy] Allow for arm64 #6055
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: maintenance | |
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-22.04 | |
strategy: | |
matrix: | |
arch: ["amd64", "arm64"] | |
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@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
*.cloudfront.net:443 | |
archive.ubuntu.com:80 | |
auth.docker.io:443 | |
files.pythonhosted.org:443 | |
github.com:443 | |
ports.ubuntu.com:80 | |
production.cloudflare.docker.com:443 | |
public.ecr.aws:443 | |
pypi.org:443 | |
registry-1.docker.io:443 | |
security.ubuntu.com:80 | |
# For subfolders, currently a full checkout is required. | |
# See: https://github.com/marketplace/actions/build-and-push-docker-images#path-context | |
- name: Checkout repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
fetch-depth: 0 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Build maintenance image | |
run: | | |
deploy/scripts/build.py --components maintenance --arch ${{ matrix.arch }} | |
shell: bash |