name: "Master release" env: DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} DOCKERHUB_REPOSITORY: serjs/go-socks5-proxy on: pull_request: branches: master push: branches: master jobs: buildx: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v1 - name: Thisdir run: ls -la - name: Set up Docker Buildx id: buildx uses: crazy-max/ghaction-docker-buildx@v1.1.0 - name: Print builder available platforms run: echo ${{ steps.buildx.outputs.platforms }} - name: Run Buildx run: | docker buildx build \ --platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 \ --output "type=image,push=false" \ --push \ --tag latest \ .