Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -154,16 +154,19 @@ 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:
contents: read
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
Expand All @@ -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
Expand Down Expand Up @@ -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
Loading