test #19
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: Buildx Action | |
on: | |
push | |
env: | |
REGISTRY_IMAGE_NAME: risczero | |
REGISTRY_IMAGE: ${{ secrets.DOCKER_USERNAME }}/hyperfridge-r0 | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
build: | |
runs-on: macos-latest | |
permissions: | |
contents: write | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-latest # https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs | |
# platform: | |
# - linux/arm64 | |
steps: | |
- name: Prepare | |
run: | | |
platform=${{ matrix.platform }} | |
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV | |
- name: Check out code | |
uses: actions/checkout@v3 | |
# - name: Set up QEMU | |
# uses: docker/setup-qemu-action@v3 | |
- | |
name: Set up Docker | |
uses: crazy-max/ghaction-setup-docker@v3 | |
# uses: crazy-max/ghaction-setup-containerd@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- | |
name: Build | |
id: build | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
load: true | |
build-args: | | |
PLATFORM=${{ matrix.platform }} | |
# platforms: ${{ matrix.platform }} | |
# labels: ${{ steps.meta.outputs.labels }} | |
# outputs: type=image,name=${{ env.REGISTRY_IMAGE }},name-canonical=true,push=false | |
tags: ${{ env.REGISTRY_IMAGE_NAME }} | |