Skip to content

ci: build a multi-arch main image #11668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from
Prev Previous commit
Next Next commit
do not build base
  • Loading branch information
matifali committed Jan 17, 2024
commit e617f33bb6e77baeca1b823e2515e140915fecd0
14 changes: 1 addition & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,6 @@ jobs:

# create an empty build context directory
mkdir -p build-context
mkdir -p base-build-context

# copy the build artifacts to the build context
cp build/coder_linux_* build-context/
Expand All @@ -725,17 +724,6 @@ jobs:
- name: Set up Depot
uses: depot/setup-action@v1

- name: Build multi arch base image
uses: depot/build-push-action@v1
with:
project: 9rcqzb56rm
context: ./base-build-context
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: ${{ steps.build.outputs.base_tag }}
file: ./scripts/Dockerfile.base
push: false
save: true

- name: Build and push multi arch image
uses: depot/build-push-action@v1
with:
Expand All @@ -749,7 +737,7 @@ jobs:
ghcr.io/coder/coder-preview:main
ghcr.io/coder/coder-preview:latest
build-args: |
BASE_IMAGE=${{ steps.build.outputs.base_tag }}
BASE_IMAGE=ghcr.io/coder/coder-base
CODER_VERSION=${{ steps.build.outputs.version }}

- name: Prune old images
Expand Down