Skip to content

Commit

Permalink
fixed ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
oemergenc committed Feb 9, 2020
1 parent 0d54fdf commit 9ea40a4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master

jobs:
container-job:
build-master:
runs-on: ubuntu-latest
container: openjdk:11
services:
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ on:
jobs:
publish-release:
runs-on: ubuntu-latest
container: openjdk:11
services:
bigtable:
image: shopify/bigtable-emulator
env:
BIGTABLE_EMULATOR_HOST: bigtable:9035
ports:
- 9035:9035

steps:
- name: Check out Git repository
- name: Checkout latest code
uses: actions/checkout@v2

- name: Install Java and Maven
uses: actions/setup-java@v1
with:
java-version: 11

- name: Setup build cache
uses: actions/cache@v1
with:
Expand All @@ -27,6 +30,7 @@ jobs:
- name: Publish artifact
env:
BIGTABLE_EMULATOR_HOST: bigtable:9035
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BINTRAYUSER: ${{ secrets.bintrayUser }}
BINTRAYAPIKEY: ${{ secrets.bintrayApiKey }}
Expand All @@ -39,4 +43,4 @@ jobs:
NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
echo "New version: ${NEW_VERSION}"
echo "Github username: ${GITHUB_ACTOR}"
./gradlew -Pversion=${NEW_VERSION} -PnexusUser=${NEXUSUSER} -PnexusPassword=${NEXUSPASSWORD} -PbintrayApiKey=${BINTRAYAPIKEY} -PbintrayUser=${BINTRAYUSER} bintrayUpload -x test --info --stacktrace
./gradlew -Pversion=${NEW_VERSION} -PnexusUser=${NEXUSUSER} -PnexusPassword=${NEXUSPASSWORD} -PbintrayApiKey=${BINTRAYAPIKEY} -PbintrayUser=${BINTRAYUSER} bintrayUpload --info --stacktrace

0 comments on commit 9ea40a4

Please sign in to comment.