ryot arm64 #20
This file contains 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: ryot arm64 | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "30 6 * * 0" | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ryot Repository | |
uses: actions/checkout@v4 | |
with: | |
repository: IgnisDa/ryot | |
- | |
name: Change build to arm64 | |
run: | | |
sed -i 's/RUN rustup target add x86_64-unknown-linux-musl/RUN rustup target add aarch64-unknown-linux-musl/g' Dockerfile | |
- | |
name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- | |
name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- | |
name: Build and push (MAIN) | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
platforms: linux/arm64 | |
push: true | |
tags: ${{ secrets.DOCKERHUB_USERNAME }}/ryot:latest |