Skip to content

Commit

Permalink
Merge pull request #24 from unbxd/git_action_build
Browse files Browse the repository at this point in the history
chore: fix ant build
  • Loading branch information
apoorvprecisely authored Aug 11, 2021
2 parents bd01666 + b4be075 commit a68c6e1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 153 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ jobs:
fi
echo ::set-output name=BUILD_TAG::$(echo $tag)
- name: setup ant
run: mkdir -p /home/runner/.ant/lib ; ant ivy-bootstrap

- name: Build binaries
if: github.event_name == 'release'
env:
TAG: ${{ github.event.release.tag_name }}
BUILD_TAG: ${{ steps.extract_tag.outputs.BUILD_TAG }}
Expand All @@ -105,10 +107,10 @@ jobs:
BUILD_TAG: ${{ steps.extract_tag.outputs.BUILD_TAG }}
run: |
cd $GITHUB_WORKSPACE
docker tag solr:$BUILD_TAG $ECR_URL/solr:$BUILD_TAG
docker tag solr:latest $ECR_URL/solr:$BUILD_TAG
docker push $ECR_URL/solr:$BUILD_TAG
if [ ! -z "$TAG" ]; then
docker tag solr:$BUILD_TAG $ECR_URL/solr:latest
docker tag solr:latest $ECR_URL/solr:latest
docker push $ECR_URL/solr:latest
fi
Expand Down
7 changes: 6 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ echo ""
PWD="$(pwd)"
LUCENE_DIRECTORY="$PWD"
SOLR_DIR="$PWD/solr"
SOLR_BASE_VERSION=${TRAVIS_TAG//v/}
SOLR_BASE_VERSION=""

if [ -n "$TAG" ]; then
SOLR_BASE_VERSION=${BUILD_TAG//v/}
fi


# Echo For DEBUG
echo "PWD: $PWD"
Expand Down
105 changes: 0 additions & 105 deletions scripts/ci.sh

This file was deleted.

44 changes: 0 additions & 44 deletions scripts/deploy.sh

This file was deleted.

0 comments on commit a68c6e1

Please sign in to comment.