diff --git a/.github/workflows/publishimage-master.yml b/.github/workflows/publishimage-master.yml index c28487ce23..5e7ada2398 100644 --- a/.github/workflows/publishimage-master.yml +++ b/.github/workflows/publishimage-master.yml @@ -27,7 +27,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TEF_TOKEN }} - name: Build Docker image - run: + run: | export TOKEN=${{ secrets.REPO_ACCESS_TOKEN }} docker build -t telefonicaiot/fiware-orion:latest --build-arg GIT_REV_ORION=master --secret id=repo_token,env=TOKEN --no-cache -f docker/Dockerfile . diff --git a/.github/workflows/publishimage-tag.yml b/.github/workflows/publishimage-tag.yml index 4ff10ad638..1dd80f8f95 100644 --- a/.github/workflows/publishimage-tag.yml +++ b/.github/workflows/publishimage-tag.yml @@ -30,7 +30,7 @@ jobs: run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - name: Build Docker image - run: + run: | export TOKEN=${{ secrets.REPO_ACCESS_TOKEN }} docker build -t telefonicaiot/fiware-orion:${{ env.VERSION }} --build-arg GIT_REV_ORION=${{ env.VERSION }} --secret id=repo_token,env=TOKEN --no-cache -f docker/Dockerfile .