DEV: Fix broken ARM64 build (#745)

Why this change?

The `docker tag discourse/base:aarch64-slim localhost:5000/discourse/base:aarch64-slim
` command broked in 0c93b2207d because
there is no `aarch64-slim` image being built. Instead, the `ruby
auto_build.rb base_slime_64` command builds an image with the
`discourse/base:build_slim_arm64` tag.

What does this change do?

This change removes the tagging command because it is pointless for us
to tag it.
This commit is contained in:
Alan Guo Xiang Tan 2023-10-17 16:08:49 +08:00 committed by GitHub
parent 0c93b2207d
commit c29cba70fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 8 deletions

View File

@ -4,7 +4,7 @@ on:
- main
pull_request:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"
concurrency:
group: build-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
@ -122,11 +122,6 @@ jobs:
aarch64:
runs-on: ubuntu-latest
needs: base
services:
registry:
image: registry
ports:
- 5000:5000
steps:
- uses: actions/checkout@v3
with:
@ -139,11 +134,10 @@ jobs:
- name: build slim image
run: |
cd image && ruby auto_build.rb base_slim_arm64
docker tag discourse/base:aarch64-slim localhost:5000/discourse/base:build_slim_arm64
- name: tag slim image as release
working-directory: image/base
run: |
docker tag discourse/base:aarch64-slim discourse/base:aarch64
docker tag discourse/base:build_slim_arm64 discourse/base:aarch64
- name: Print summary
run: docker images discourse/base
- name: push to dockerhub