From 5a9201a59a8d40856467c51f02dffd486a97e214 Mon Sep 17 00:00:00 2001 From: Solar Mithril Date: Mon, 12 May 2025 17:35:12 +0600 Subject: [PATCH] Removed op- prefix for tags, because we are in op-rbuilder repo now Added runners for docker building to speed up arm64 Put more robust repo name --- .github/workflows/release.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2340edc8b..874d36109 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -42,7 +42,7 @@ jobs: id: extract_version run: | if [[ "${GITHUB_REF_TYPE}" == "tag" ]]; then - VERSION="${GITHUB_REF#refs/tags/op-}" + VERSION="${GITHUB_REF#refs/tags/}" else VERSION="$(echo ${GITHUB_SHA} | cut -c1-7)" fi @@ -154,7 +154,7 @@ jobs: if: ${{ github.event.inputs.build-docker == 'true' }} name: Build and publish Docker image needs: extract-version - runs-on: warp-ubuntu-latest-x64-16x + runs-on: ${{ matrix.configs.runner }} env: VERSION: ${{ needs.extract-version.outputs.VERSION }} permissions: @@ -162,8 +162,11 @@ jobs: packages: write strategy: matrix: - features: - - ${{ github.event.inputs.features || '' }} + configs: + - target: linux/amd64 + runner: warp-ubuntu-latest-x64-16x + - target: linux/arm64 + runner: warp-ubuntu-latest-arm64-16x steps: - name: checkout sources uses: actions/checkout@v4 @@ -178,7 +181,7 @@ jobs: uses: docker/metadata-action@v5 id: meta with: - images: ghcr.io/${{ github.repository_owner }}/op-rbuilder + images: ghcr.io/${{ github.repository }} labels: org.opencontainers.image.source=${{ github.repositoryUrl }} tags: | type=sha @@ -208,5 +211,5 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} build-args: | - FEATURES=${{ matrix.features }} + FEATURES=${{ github.event.inputs.features || '' }} RBUILDER_BIN=op-rbuilder