Skip to content

Commit

Permalink
Update docker-image-arm64.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
akhil-rana authored Feb 22, 2024
1 parent d6e73fd commit 60d0e81
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/docker-image-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,19 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Build and push ARM64 Docker image
- name: Install Docker
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 --user='runner'
# sudo hdiutil detach /Volumes/Docker
# export PATH=$PATH:~/.docker/bin
# sudo xattr -r -d com.apple.quarantine /Applications/Docker.app
HOMEBREW_NO_AUTO_UPDATE=1 brew install --cask docker
export PATH=$PATH:~/.docker/bin
sudo /Applications/Docker.app/Contents/MacOS/Docker --unattended --install-privileged-components
open -a /Applications/Docker.app --args --unattended --accept-license
echo "We are waiting for Docker to be up and running. It can take over 2 minutes..."
while ! /Applications/Docker.app/Contents/Resources/bin/docker info &>/dev/null; do sleep 1; done
brew install --cask docker
- name: Start Docker
run: |
# Start Docker.app if not already running
if ! pgrep -f Docker.app; then
open -a /Applications/Docker.app
# Wait for Docker to be ready
while ! docker info >/dev/null 2>&1; do sleep 1; done
fi
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

0 comments on commit 60d0e81

Please sign in to comment.