Skip to content

Commit

Permalink
DEV: Add job for building Discourse dev release image for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxworld committed Oct 16, 2023
1 parent 4130fea commit d2447d1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/arm64-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,28 @@ jobs:
docker push discourse/discourse_test:slim-arm64
docker push discourse/discourse_test:slim-browsers-arm64
docker push discourse/discourse_test:release-arm64
dev:
runs-on: ubuntu-20.04
needs: base
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: build discourse/discourse_dev:release-arm64 image
run: |
cd image && ruby auto_build.rb discourse_dev_arm64
- name: push to dockerhub
if: success() && (github.ref == 'refs/heads/main')
env:
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
run: |
docker tag discourse/discourse_dev:build_arm64 discourse/discourse_dev:release-arm64
docker login --username discoursebuild --password $DOCKERHUB_PASSWORD
docker push discourse/discourse_dev:release-arm64

0 comments on commit d2447d1

Please sign in to comment.