Add Support for ARM64 #160
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: Update Docker alpha tag | |
on: | |
pull_request: | |
branches: [ "main" ] | |
env: | |
APP_NAME: watchlistarr | |
DOCKER_FILE: docker/Dockerfile | |
DOCKER_PLATFORMS: "linux/arm64/v8,linux/amd64" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Docker Metadata action | |
id: meta | |
uses: docker/[email protected] | |
with: | |
images: | | |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME }} | |
tags: | | |
type=sha | |
alpha | |
- name: Docker Setup QEMU | |
uses: docker/[email protected] | |
- name: Docker Setup Buildx | |
uses: docker/[email protected] | |
with: | |
buildkitd-flags: --debug | |
- name: Build and push Docker images | |
uses: docker/[email protected] | |
with: | |
context: . | |
file: ${{ env.DOCKER_FILE }} | |
platforms: ${{ env.DOCKER_PLATFORMS }} | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |