diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0b7043f71b..f72643ebe1 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -216,11 +216,13 @@ jobs: - name: Push latest rad cli binary to GHCR (unix-like) if: github.ref == 'refs/heads/main' && matrix.target_os != 'windows' run: | - oras push ${{ env.CONTAINER_REGISTRY }}/rad/${{ matrix.target_os }}-${{ matrix.target_arch }}:latest ./dist/${{ matrix.target_os}}_${{ matrix.target_arch}}/release/rad --annotation "org.opencontainers.image.source=${{ env.IMAGE_SRC }}" + cp ./dist/${{ matrix.target_os}}_${{ matrix.target_arch}}/release/rad ./rad + oras push ${{ env.CONTAINER_REGISTRY }}/rad/${{ matrix.target_os }}-${{ matrix.target_arch }}:latest ./rad --annotation "org.opencontainers.image.source=${{ env.IMAGE_SRC }}" - name: Copy cli binaries to release (windows) if: github.ref == 'refs/heads/main' && matrix.target_os == 'windows' run: | - oras push ${{ env.CONTAINER_REGISTRY }}/rad/${{ matrix.target_os }}-${{ matrix.target_arch }}:latest ./dist/${{ matrix.target_os}}_${{ matrix.target_arch}}/release/rad.exe --annotation "org.opencontainers.image.source=${{ env.IMAGE_SRC }}" + cp ./dist/${{ matrix.target_os}}_${{ matrix.target_arch}}/release/rad.exe ./rad.exe + oras push ${{ env.CONTAINER_REGISTRY }}/rad/${{ matrix.target_os }}-${{ matrix.target_arch }}:latest .rad.exe --annotation "org.opencontainers.image.source=${{ env.IMAGE_SRC }}" build-and-push-images: name: Build and publish container images