Docker Image CI for ARM64 #20
This file contains hidden or 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: Docker Image CI for ARM64 | |
on: | |
#push: | |
# branches: ["master"] | |
#pull_request: | |
# branches: ["master"] | |
# Allow manual run of the pipeline | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Build the Docker image | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build and Push the image to Docker Hub | |
uses: docker/build-push-action@v4 | |
with: | |
# To define a custom registry | |
# registry: docker.pkg.github.com | |
context: . | |
file: ./Dockerfile-arm64 | |
platforms: linux/arm64 | |
push: true | |
tags: ${{ secrets.DOCKERHUB_USERNAME }}/rasp-test:latest-arm64 |