-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Test fix versioning and modify docker images
- Loading branch information
1 parent
d0a48f8
commit 455b77c
Showing
1 changed file
with
40 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,64 +26,74 @@ jobs: | |
with: | ||
python-version: '3.11' | ||
|
||
- name: Dry Run to get next release version | ||
id: next_version | ||
shell: bash | ||
run: | | ||
pip install python-semantic-release | ||
echo "new_tag_version=$(semantic-release --noop version --print)" >> $GITHUB_OUTPUT | ||
# - name: Dry Run to get next release version | ||
# id: next_version | ||
# shell: bash | ||
# run: | | ||
# pip install python-semantic-release | ||
# echo "new_tag_version=$(semantic-release --noop version --print)" >> $GITHUB_OUTPUT | ||
|
||
- name: Python Semantic Release | ||
id: release | ||
uses: python-semantic-release/python-semantic-release@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Declare some variables | ||
# id: vars | ||
# shell: bash | ||
# run: | | ||
# echo "setting variables" | ||
# echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
# echo "the release status is: ${{ steps.release.outputs.released }}" | ||
# echo "the new version is: ${{ steps.release.outputs.version }}" | ||
# echo "the new tag version is: ${{ steps.release.outputs.tag }}" | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Publish vidvec amd64 benchmark to dockerhub | ||
#if: steps.release.outcome == 'success' | ||
- name: Publish vidvec amd64 worker to dockerhub | ||
if: steps.release.outputs.released == 'true' | ||
uses: elgohr/Publish-Docker-Github-Action@main | ||
with: | ||
username: tattletech | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
name: tattletech/feluda-operator-vidvec | ||
workdir: src/ | ||
dockerfile: benchmark/vidvec/Dockerfile.vid_vec_rep_resnet | ||
tags: benchmark-amd64-${{ steps.next_version.outputs.new_tag_version }} | ||
dockerfile: worker/vidvec/Dockerfile.video_worker | ||
tags: worker-amd64-${{ steps.release.outputs.tag }} | ||
platforms: linux/amd64 | ||
|
||
- name: Publish vidvec arm64 benchmark to dockerhub | ||
#if: steps.release.outcome == 'success' | ||
- name: Publish vidvec arm64 worker to dockerhub | ||
if: steps.release.outputs.released == 'true' | ||
uses: elgohr/Publish-Docker-Github-Action@main | ||
with: | ||
username: tattletech | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
name: tattletech/feluda-operator-vidvec | ||
workdir: src/ | ||
dockerfile: benchmark/vidvec/Dockerfile.vid_vec_rep_resnet.graviton | ||
tags: benchmark-arm64-${{ steps.next_version.outputs.new_tag_version }} | ||
dockerfile: worker/vidvec/Dockerfile.video_worker.graviton | ||
tags: worker-arm64-${{ steps.release.outputs.tag }} | ||
platforms: linux/arm64 | ||
|
||
# - name: Publish vidvec amd64 worker to dockerhub | ||
# #if: steps.release.outcome == 'success' | ||
# uses: elgohr/Publish-Docker-Github-Action@main | ||
# with: | ||
# username: tattletech | ||
# password: ${{ secrets.DOCKER_PASSWORD }} | ||
# name: tattletech/feluda-operator-vidvec | ||
# workdir: src/ | ||
# dockerfile: worker/vidvec/Dockerfile.video_worker | ||
# tags: worker-amd64-${{ steps.next_version.outputs.new_tag_version }} | ||
# platforms: linux/amd64 | ||
- name: Publish audiovec amd64 worker to dockerhub | ||
if: steps.release.outputs.released == 'true' | ||
uses: elgohr/Publish-Docker-Github-Action@main | ||
with: | ||
username: tattletech | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
name: tattletech/feluda-operator-audiovec | ||
workdir: src/ | ||
dockerfile: worker/audiovec/Dockerfile.audio_worker | ||
tags: worker-amd64-${{ steps.release.outputs.tag }} | ||
platforms: linux/amd64 | ||
|
||
- name: Publish audiovec arm64 worker to dockerhub | ||
if: steps.release.outputs.released == 'true' | ||
uses: elgohr/Publish-Docker-Github-Action@main | ||
with: | ||
username: tattletech | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
name: tattletech/feluda-operator-audiovec | ||
workdir: src/ | ||
dockerfile: worker/audiovec/Dockerfile.audio_worker.graviton | ||
tags: worker-arm64-${{ steps.release.outputs.tag }} | ||
platforms: linux/arm64 | ||
|
||
# - name: deploy to cluster | ||
# uses: steebchen/[email protected] | ||
|