From 59145085d2901aae4f4207733ff578f6314173c4 Mon Sep 17 00:00:00 2001 From: Diego C Date: Thu, 25 Apr 2024 16:54:27 +0200 Subject: [PATCH] main to keep v0.1.4 extension release, other branches to use v2(latest) (#117) `main` branch will use v1 extension release, ie `v0.1.4` other branches will use v2 extension release, ie latest --- .github/workflows/build_push_docker_hub.yml | 6 ++++++ .gitignore | 1 + 2 files changed, 7 insertions(+) diff --git a/.github/workflows/build_push_docker_hub.yml b/.github/workflows/build_push_docker_hub.yml index 45d7a09..60ac7bb 100644 --- a/.github/workflows/build_push_docker_hub.yml +++ b/.github/workflows/build_push_docker_hub.yml @@ -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 @@ -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 @@ -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 diff --git a/.gitignore b/.gitignore index f9fac83..e3970df 100644 --- a/.gitignore +++ b/.gitignore @@ -12,5 +12,6 @@ cmd/node/node data data-head data-worker +data-worker-2 main.py .DS_Store