Skip to content

Commit

Permalink
Merge pull request #727 from jorenn92/ci/build-job-naming
Browse files Browse the repository at this point in the history
Ci/build job naming
  • Loading branch information
jorenn92 authored Jan 8, 2024
2 parents a19a6e6 + d0eb04f commit 146ba23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Build and push Docker image"
name: "Docker build image"

on:
push:
Expand All @@ -17,7 +17,7 @@ permissions:

jobs:
build_docker_image:
name: Build and push Docker image
name: ${{ github.event_name == 'pull_request' && 'Build' || 'Build & Push' }}
runs-on: ubuntu-latest
steps:
- name: Check out the repo
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build & Push image
- name: ${{ github.event_name == 'pull_request' && 'Build image' || 'Build & Push image' }}
uses: docker/build-push-action@v5
with:
context: .
Expand Down

0 comments on commit 146ba23

Please sign in to comment.