From 33a481be3e179353cb7793a92b57cf9a6c985860 Mon Sep 17 00:00:00 2001 From: Lars Gohr Date: Fri, 5 Aug 2022 23:27:46 +0200 Subject: [PATCH] :memo: Improve documentation. Add reference to docker/setup-buildx-action --- README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4982e18..e69cfcb 100644 --- a/README.md +++ b/README.md @@ -153,12 +153,18 @@ Use `buildoptions` when you want to configure [options](https://docs.docker.com/ Use `platforms` when you would like to build for specific target architectures. Architectures are separated by comma. +`docker/setup-buildx-action` must be executed before a step that contains `platforms`. + ```yaml -with: - name: myDocker/repository - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - platforms: linux/amd64,linux/arm64 +- name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 +- name: Publish to Registry + uses: elgohr/Publish-Docker-Github-Action@v4 + with: + name: myDocker/repository + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + platforms: linux/amd64,linux/arm64 ``` ### cache