ci: better just recipe for local build and better compose for dev #17
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
name: New Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
semantic_release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Python Semantic Release | |
id: semantic | |
uses: python-semantic-release/python-semantic-release@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: docker push version | |
if: steps.semantic.outputs.released == 'true' | |
run: | | |
export RELEASE_VERSION=$(echo ${{ steps.semantic.outputs.tag }} | cut -c 2-)-cuda124 | |
# docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }} | |
# docker buildx create --name mybuilder --platform linux/amd64 --use | |
# docker buildx build --push --platform linux/amd64 \ | |
# -t mbari/fastapi-vss:$RELEASE_VERSION \ | |
# --build-arg IMAGE_URI=mbari/fastapi-vss:$RELEASE_VERSION \ | |
# --build-arg GH_TOKEN=${{ secrets.GH_TOKEN }} \ | |
# -f Dockerfile.cuda . |