Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
main to keep v0.1.4 extension release, other branches to use v2(lates…
Browse files Browse the repository at this point in the history
…t) (#117)

`main` branch will use v1 extension release, ie `v0.1.4` 
other branches will use v2 extension release, ie latest
  • Loading branch information
xmariachi authored Apr 25, 2024
1 parent df81074 commit 5914508
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build_push_docker_hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set BLS_EXTENSION_VER for main branch
run: echo "BLS_EXTENSION_VER=v0.1.4" >> $GITHUB_ENV
if: github.ref == 'refs/heads/main'

- name: Checkout
uses: actions/checkout@v3

Expand Down Expand Up @@ -56,6 +60,7 @@ jobs:
docker build --pull -f docker/Dockerfile_worker \
--build-arg "GH_TOKEN=${{ secrets.GH_READONLY_PAT }}" \
--build-arg "BLS_EXTENSION_VER=$BLS_EXTENSION_VER" \
-t $DOCKERHUB_USERNAME/$DOCKERHUB_REPOSITORY:$IMAGE_TAG .
docker push $DOCKERHUB_USERNAME/$DOCKERHUB_REPOSITORY:$IMAGE_TAG
Expand All @@ -68,6 +73,7 @@ jobs:
docker build --pull -f docker/Dockerfile_worker_py3.9 \
--build-arg "GH_TOKEN=${{ secrets.GH_READONLY_PAT }}" \
--build-arg "BLS_EXTENSION_VER=$BLS_EXTENSION_VER" \
-t $DOCKERHUB_USERNAME/$DOCKERHUB_REPOSITORY:python3.9-$IMAGE_TAG .
docker push $DOCKERHUB_USERNAME/$DOCKERHUB_REPOSITORY:python3.9-$IMAGE_TAG
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ cmd/node/node
data
data-head
data-worker
data-worker-2
main.py
.DS_Store

0 comments on commit 5914508

Please sign in to comment.