From 0ca95b93682b229b9f9dad17414e48bc7e58ef23 Mon Sep 17 00:00:00 2001 From: asonix Date: Wed, 7 Feb 2024 21:31:25 -0600 Subject: [PATCH] Try to fix prepare platform --- .forgejo/workflows/publish.yaml | 45 ++++++++++++++++----------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml index 3873679..c46246c 100644 --- a/.forgejo/workflows/publish.yaml +++ b/.forgejo/workflows/publish.yaml @@ -62,6 +62,28 @@ jobs: - name: Checkout pict-rs uses: https://github.com/actions/checkout@v4 + - + name: Prepare Platform + run: | + bash -c 'platform=${{ matrix.info.platform }} echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV' + - + name: Docker meta + id: meta + uses: https://github.com/docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY_IMAGE }} + - + name: Set up QEMU + uses: https://github.com/docker/setup-qemu-action@v3 + - + name: Set up Docker Buildx + uses: https://github.com/docker/setup-buildx-action@v3 + - + name: Docker login + uses: https://github.com/docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Setup Rust uses: https://git.asonix.dog/asonix/pict-rs/.forgejo/actions/prepare-rust@main @@ -83,29 +105,6 @@ jobs: with: name: ${{ matrix.info.artifact }} path: artifacts/ - - - name: Prepare Platform - run: | - platform=${{ matrix.info.platform }} - echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV - - - name: Docker meta - id: meta - uses: https://github.com/docker/metadata-action@v5 - with: - images: ${{ env.REGISTRY_IMAGE }} - - - name: Set up QEMU - uses: https://github.com/docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: https://github.com/docker/setup-buildx-action@v3 - - - name: Docker login - uses: https://github.com/docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Prepare binary run: cp target/${{ matrix.info.target }}/release/pict-rs docker/forgejo/pict-rs