Skip to content

Commit

Permalink
ci: Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
waltkb committed Aug 30, 2023
1 parent ec79d1a commit 290dbc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,13 @@ jobs:
- name: Gradle wrapper validation
uses: gradle/wrapper-validation-action@v1

- name: Setup Gradle
- name: Gradle Build and Publish
uses: gradle/gradle-build-action@v2

- name: Gradle build and push
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
run: ./gradlew build publish
with:
arguments: build publish

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ COPY --from=dos2unix-env /convert/*.pem src/test/resources/key/
VOLUME /home/gradle/.gradle

RUN if [ -z "$SKIP_TESTS" ]; \
then echo "* Running full build" && gradle -i clean build installDist; \
else echo "* Building but skipping tests" && gradle -i clean installDist -x test; \
then echo "* Running full build" && ./gradlew -i clean build installDist; \
else echo "* Building but skipping tests" && ./gradlew -i clean installDist -x test; \
fi

# --- opa-env
Expand Down

0 comments on commit 290dbc5

Please sign in to comment.