aarch64:
runs-on: [ubuntu-20.04]
needs: base
+ services:
+ registry:
+ image: registry
+ ports:
+ - 5000:5000
steps:
- uses: actions/checkout@v2
with:
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- - name: build base image for aarch64
+ - name: build slim image
+ working-directory: image/base
+ run: |
+ docker buildx build . --load \
+ -f slim.Dockerfile \
+ --platform linux/arm64 \
+ --tag discourse/base:aarch64-slim
+ docker tag discourse/base:aarch64-slim localhost:5000/discourse/base:aarch64-slim
+ docker push localhost:5000/discourse/base:aarch64-slim
+ - name: build release image
+ working-directory: image/base
run: |
- cd image/base
- docker buildx build . -f slim.Dockerfile --platform linux/arm64 --load --tag discourse/base:aarch64-slim
- docker buildx build . -f release.Dockerfile --platform linux/arm64 --load --tag discourse/base:aarch64 --build-arg tag=aarch64-slim
+ docker buildx create --name builder --use --driver-opt network=host
+ docker buildx build . --load \
+ -f release.Dockerfile \
+ --platform linux/arm64 \
+ --network=host \
+ --build-arg from=localhost:5000/discourse/base \
+ --build-arg tag=aarch64-slim \
+ --tag discourse/base:aarch64
+ - name: Print summary
+ run: docker images discourse/base
- name: push to dockerhub
if: success() && (github.ref == 'refs/heads/main')
env: