(Multi Arch) Publish Docker Image to Docker Hub #6
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: (ARM64) Publish Docker Image to Docker Hub | |
on: | |
workflow_dispatch: # Triggered manually | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build and push ARM64 Docker image | |
run: | | |
sudo apt update | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt update | |
sudo apt-cache policy docker-ce | |
sudo apt install docker-ce -y | |
sudo docker login -u akhilrana -p ${{ secrets.DOCKER_PASSWORD }} | |
sudo docker buildx build --platform linux/arm64 -t akhilrana/telegramarr:arm64-latest . | |
sudo docker push akhilrana/telegramarr:arm64-latest |