Skip to content

Commit

Permalink
test docker image build worflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Elwizzy12 committed Nov 18, 2024
1 parent aa11ff3 commit 0339c71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
name: Build and Push Docker Image
name: Build and Push Docker Image (Testing)
on:
# Trigger the workflow only when a pull request is merged into main
pull_request:
push:
branches:
- main
types:
- closed
- workflow-test-branch

jobs:
build:
# Run this job only if the pull request is actually merged
if: github.event.pull_request.merged == true

runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Log in to GHCR
uses: docker/login-action@v3
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
@SpringBootApplication
@EnableObsServiceimpl
public class OnlineBankingApplication {

public static void main(String[] args) {
SpringApplication.run(OnlineBankingApplication.class, args);
}
Expand Down

0 comments on commit 0339c71

Please sign in to comment.