Skip to content

Commit

Permalink
docker build pipeline on pr transfered on github (#11409)
Browse files Browse the repository at this point in the history
* docker build pipeline on pr

* rename pipeline

* run doker build only on pr
  • Loading branch information
mirkoSekulic authored Oct 20, 2023
1 parent 756c2ab commit 3647731
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build-image-on-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Docker build
on:
pull_request:
branches: [ master ]
types: [opened, synchronize, reopened]
workflow_dispatch:

jobs:
docker-build:
name: Build image
runs-on: ubuntu-latest
container:
image: docker:latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Build image
run: |
docker build .

0 comments on commit 3647731

Please sign in to comment.