Skip to content

(Multi Arch) Publish Docker Image to Docker Hub #25

(Multi Arch) Publish Docker Image to Docker Hub

(Multi Arch) Publish Docker Image to Docker Hub #25

name: (ARM64) Publish Docker Image to Docker Hub
on:
workflow_dispatch: # Triggered manually
jobs:
build-and-publish:
runs-on: macos-14
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build and push ARM64 Docker image
run: |
wget https://desktop.docker.com/mac/main/arm64/137060/Docker.dmg
sudo hdiutil attach Docker.dmg
sudo /Volumes/Docker/Docker.app/Contents/MacOS/install --accept-license
sudo hdiutil detach /Volumes/Docker
sudo xattr -r -d com.apple.quarantine /Applications/Docker.app
sudo /Applications/Docker.app/Contents/MacOS/Docker --unattended --install-privileged-components
open -a /Applications/Docker.app
until sudo docker login -u akhilrana -p ${{ secrets.DOCKER_PASSWORD }}; do sleep 1; done
until sudo docker build -t akhilrana/telegramarr:latest-arm64 .; do sleep 1; done
sudo docker push akhilrana/telegramarr:latest-arm-64