♻️Director v2: remove aiopg usage (#7576) #182
This file contains hidden or 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: CI ARM64 Build and Push | |
| on: | |
| push: | |
| branches: | |
| - "master" | |
| tags-ignore: | |
| - "*" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-push-arm64: | |
| timeout-minutes: 60 # intentionally long to allow for slow builds | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| os: [ubuntu-24.04] | |
| python: ["3.11"] | |
| env: | |
| # secrets can be set in settings/secrets on github | |
| DOCKER_REGISTRY: ${{ secrets.DOCKER_REGISTRY }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: setup QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: setup docker buildx | |
| id: buildx | |
| uses: docker/setup-buildx-action@v3 | |
| with: | |
| driver: docker-container | |
| - name: expose github runtime for buildx | |
| uses: crazy-max/ghaction-github-runtime@v3 | |
| - name: show system environs | |
| run: ./ci/helpers/show_system_versions.bash | |
| - name: login to Dockerhub | |
| uses: docker/login-action@v2 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Set deployment variables | |
| run: | | |
| if [ "${GITHUB_REF}" == "refs/heads/master" ]; then | |
| echo "TAG_PREFIX=master-github" >> $GITHUB_ENV | |
| elif [[ "${GITHUB_REF}" == refs/heads/hotfix_v* ]]; then | |
| echo "TAG_PREFIX=hotfix-github" >> $GITHUB_ENV | |
| elif [[ "${GITHUB_REF}" == refs/heads/hotfix_staging_* ]]; then | |
| echo "TAG_PREFIX=hotfix-staging-github" >> $GITHUB_ENV | |
| fi | |
| - name: build & push images for latest tag | |
| run: | | |
| export DOCKER_IMAGE_TAG="$TAG_PREFIX-latest-arm64" | |
| export DOCKER_TARGET_PLATFORMS=linux/arm64 | |
| # These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105 | |
| # and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed | |
| export UV_COMPILE_BYTECODE=1 | |
| export UV_CONCURRENT_INSTALLS=1 | |
| make build push=true |