Skip to content

Commit 2fd6d1a

Browse files
authored
chore: Fix publish, versions issue (#4945)
fix publish, versions issue Signed-off-by: Tommy Hughes <tohughes@redhat.com>
1 parent c8378a3 commit 2fd6d1a

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

.github/workflows/build_wheels.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ name: build wheels
55
# Devs should check out their fork, add a tag to the last master commit on their fork, and run the release off of their fork on the added tag to ensure wheels will be built correctly.
66
on:
77
workflow_dispatch:
8-
tags:
9-
- 'v*.*.*'
108
inputs:
119
release_version:
1210
description: 'The release version to use (e.g., v1.2.3)'
@@ -39,12 +37,6 @@ on:
3937
type: string
4038

4139
jobs:
42-
get-version:
43-
uses: ./.github/workflows/get_semantic_release_version.yml
44-
with:
45-
custom_version: ${{ github.event.inputs.release_version }}
46-
token: ${{ github.event.inputs.token }}
47-
4840
build-python-wheel:
4941
name: Build wheels
5042
runs-on: ubuntu-latest
@@ -111,30 +103,34 @@ jobs:
111103
build-docker-images:
112104
name: Build Docker images
113105
runs-on: ubuntu-latest
114-
needs: get-version
115106
strategy:
116107
matrix:
117108
component: [ feature-server, feature-server-java, feature-transformation-server, feast-operator ]
118109
env:
119110
REGISTRY: feastdev
120111
steps:
112+
- id: get-version
113+
uses: ./.github/workflows/get_semantic_release_version.yml
114+
with:
115+
custom_version: ${{ github.event.inputs.custom_version }}
116+
token: ${{ github.event.inputs.token }}
121117
- uses: actions/checkout@v4
122118
- name: Set up QEMU
123119
uses: docker/setup-qemu-action@v1
124120
- name: Set up Docker Buildx
125121
uses: docker/setup-buildx-action@v1
126122
- name: Build image
127123
run: |
128-
VERSION_WITHOUT_PREFIX=${{ needs.get-version.outputs.version_without_prefix }}
129-
RELEASE_VERSION=${{ needs.get-version.outputs.release_version }}
130-
HIGHEST_SEMVER_TAG=${{ needs.get-version.outputs.highest_semver_tag }}
124+
VERSION_WITHOUT_PREFIX: ${{ steps.get-version.outputs.version_without_prefix }}
125+
HIGHEST_SEMVER_TAG: ${{ steps.get-version.outputs.highest_semver_tag }}
126+
RELEASE_VERSION=${{ steps.get-version.outputs.release_version }}
131127
echo "Building docker image for ${{ matrix.component }} with version $VERSION_WITHOUT_PREFIX and release version $RELEASE_VERSION"
132128
make build-${{ matrix.component }}-docker REGISTRY=${REGISTRY} VERSION=${VERSION_WITHOUT_PREFIX}
133129
134130
verify-python-wheels:
135131
name: Verify Python wheels
136132
runs-on: ${{ matrix.os }}
137-
needs: [ build-python-wheel, build-source-distribution, get-version ]
133+
needs: [ build-python-wheel, build-source-distribution ]
138134
strategy:
139135
matrix:
140136
os: [ ubuntu-latest, macos-13 ]
@@ -153,8 +149,12 @@ jobs:
153149
else
154150
echo "Succeeded!"
155151
fi
156-
VERSION_WITHOUT_PREFIX: ${{ needs.get-version.outputs.version_without_prefix }}
157152
steps:
153+
- id: get-version
154+
uses: ./.github/workflows/get_semantic_release_version.yml
155+
with:
156+
custom_version: ${{ github.event.inputs.custom_version }}
157+
token: ${{ github.event.inputs.token }}
158158
- name: Setup Python
159159
id: setup-python
160160
uses: actions/setup-python@v5
@@ -185,6 +185,8 @@ jobs:
185185
run: pip install dist/*tar.gz
186186
# Validate that the feast version installed is not development and is the correct version of the tag we ran it off of.
187187
- name: Validate Feast Version
188+
env:
189+
VERSION_WITHOUT_PREFIX: ${{ steps.get-version.outputs.version_without_prefix }}
188190
run: |
189191
feast version
190192
if ! VERSION_OUTPUT=$(feast version); then

.github/workflows/publish_images.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,3 @@ jobs:
7878
docker tag feastdev/${{ matrix.component }}:${VERSION_WITHOUT_PREFIX} feastdev/${{ matrix.component }}:latest
7979
docker push feastdev/${{ matrix.component }}:latest
8080
fi
81-

0 commit comments

Comments
 (0)