Skip to content

Commit

Permalink
Only build for amd64
Browse files Browse the repository at this point in the history
need python3.11 for unit image on arm
  • Loading branch information
frankh committed Sep 21, 2023
1 parent 2abb6dd commit ed08e57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-n-cache-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ runs:
load: ${{ inputs.load }}
file: production-unit.Dockerfile
tags: ${{ steps.emit.outputs.tag }}
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
env:
ACTIONS_ID_TOKEN_REQUEST_URL: ${{ inputs.actions-id-token-request-url }}
2 changes: 1 addition & 1 deletion .github/workflows/container-images-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
push: true
file: production-unit.Dockerfile
tags: ${{ steps.aws-ecr.outputs.registry }}/posthog-cloud:unit
platforms: linux/arm64,linux/amd64
platforms: linux/amd64

- name: get deployer token
id: deployer
Expand Down
4 changes: 2 additions & 2 deletions production-unit.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ RUN corepack enable && \
#
# ---------------------------------------------------------
#
FROM python:3.11-slim-bullseye AS posthog-build
FROM python:3.10.10-slim-bullseye AS posthog-build
WORKDIR /code
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

Expand Down Expand Up @@ -136,7 +136,7 @@ RUN apt-get update && \
#
# ---------------------------------------------------------
#
FROM unit:1.31.0-python3.11
FROM nginx/unit:1.28.0-python3.10
WORKDIR /code
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
ENV PYTHONUNBUFFERED 1
Expand Down

0 comments on commit ed08e57

Please sign in to comment.