Skip to content

Commit

Permalink
Simplified the build (no docker deployment)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcingrzejszczak committed Feb 13, 2025
1 parent 8220249 commit 9413e58
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
- name: Grant execute permission for Gradle
run: chmod +x gradlew

- name: Build with Gradle without GH acceptance tests
- name: Build with Gradle including acceptance tests
env:
GH_TOKEN: ""
run: ./gradlew build

docker:
acceptanceTests:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push' # Don't run for PRs
Expand All @@ -51,17 +51,7 @@ jobs:
distribution: 'temurin'
java-version: '17'

- name: Login to Docker Hub
run: echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin

- name: Build with Gradle including acceptance tests
- name: Run e2e tests
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: ./gradlew build

- name: Build and push Docker image with Jib
run: ./gradlew jib
env:
DOCKER_HUB_REPO: "mgrzejszczak/micrometer-release"
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
run: ./gradlew test --tests "*E2eTests"
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import static org.assertj.core.api.Assertions.assertThat;

class GithubActionsAcceptanceTests implements GithubActions {
class GithubActionsE2eTests implements GithubActions {

@BeforeAll
static void should_go_through_whole_flow() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

import static org.assertj.core.api.Assertions.assertThat;

class GithubActionsAcceptanceTests implements GithubActions {
class GithubActionsE2eTests implements GithubActions {

@BeforeAll
static void should_go_through_whole_flow() {
Expand Down

0 comments on commit 9413e58

Please sign in to comment.