Skip to content

Commit

Permalink
Update CI step names
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Nov 7, 2024
1 parent 677f873 commit 43bd362
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Docker images
name: Build test Docker image

inputs:
image-name:
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/push/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Push Docker image
name: Build and push Docker images

inputs:
image-id:
Expand Down
62 changes: 21 additions & 41 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build, test and publish
name: Build, test and push

permissions:
contents: read
Expand Down Expand Up @@ -36,13 +36,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint
uses: ./.github/actions/lint
- uses: ./.github/actions/lint
with:
dockerfile-location: ${{ env.DOCKERFILE_LOCATION }}
ignore-linting-rules: DL3002,DL3006
- name: Build
id: build
- id: build
uses: ./.github/actions/build
with:
image-name: ${{ env.IMAGE_NAME }}
Expand All @@ -65,8 +63,7 @@ jobs:
image: ${{ env.IMAGE_NAME }}
image-tag: ${{ steps.build.outputs.tag }}
expected-user: app
- name: Push
uses: ./.github/actions/push
- uses: ./.github/actions/push
with:
image-id: ${{ steps.build.outputs.image-id }}
image-tag: ${{ steps.build.outputs.tag }}
Expand All @@ -76,8 +73,7 @@ jobs:
dockerfile-location: ${{ env.DOCKERFILE_LOCATION }}
user-image: ${{ env.USER_IMAGE }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Scan
uses: ./.github/actions/scan
- uses: ./.github/actions/scan
with:
image-id: ${{ steps.build.outputs.image-id }}
image-tag: ${{ steps.build.outputs.tag }}
Expand All @@ -93,13 +89,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint
uses: ./.github/actions/lint
- uses: ./.github/actions/lint
with:
dockerfile-location: ${{ env.DOCKERFILE_LOCATION }}
ignore-linting-rules: DL3002,DL3006
- name: Build
id: build
- id: build
uses: ./.github/actions/build
with:
image-name: ${{ env.IMAGE_NAME }}
Expand All @@ -122,8 +116,7 @@ jobs:
image: ${{ env.IMAGE_NAME }}
image-tag: ${{ steps.build.outputs.tag }}
expected-user: root
- name: Push
uses: ./.github/actions/push
- uses: ./.github/actions/push
with:
image-id: ${{ steps.build.outputs.image-id }}
image-tag: ${{ steps.build.outputs.tag }}
Expand All @@ -133,8 +126,7 @@ jobs:
dockerfile-location: ${{ env.DOCKERFILE_LOCATION }}
user-image: ${{ env.USER_IMAGE }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Scan
uses: ./.github/actions/scan
- uses: ./.github/actions/scan
with:
image-id: ${{ steps.build.outputs.image-id }}
image-tag: ${{ steps.build.outputs.tag }}
Expand All @@ -151,12 +143,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint
uses: ./.github/actions/lint
- uses: ./.github/actions/lint
with:
dockerfile-location: ${{ env.DOCKERFILE_LOCATION }}
- name: Build
id: build
- id: build
uses: ./.github/actions/build
with:
image-name: ${{ env.IMAGE_NAME }}
Expand All @@ -171,8 +161,7 @@ jobs:
image: ${{ env.IMAGE_NAME }}
image-tag: ${{ steps.build.outputs.tag }}
expected-user: app
- name: Push
uses: ./.github/actions/push
- uses: ./.github/actions/push
with:
image-id: ${{ steps.build.outputs.image-id }}
image-tag: ${{ steps.build.outputs.tag }}
Expand All @@ -182,8 +171,7 @@ jobs:
dockerfile-location: ${{ env.DOCKERFILE_LOCATION }}
user-image: ${{ env.USER_IMAGE }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Scan
uses: ./.github/actions/scan
- uses: ./.github/actions/scan
with:
image-id: ${{ steps.build.outputs.image-id }}
image-tag: ${{ steps.build.outputs.tag }}
Expand All @@ -200,13 +188,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint
uses: ./.github/actions/lint
- uses: ./.github/actions/lint
with:
dockerfile-location: ${{ env.DOCKERFILE_LOCATION }}
ignore-linting-rules: DL3002
- name: Build
id: build
- id: build
uses: ./.github/actions/build
with:
image-name: ${{ env.IMAGE_NAME }}
Expand All @@ -221,8 +207,7 @@ jobs:
image: ${{ env.IMAGE_NAME }}
image-tag: ${{ steps.build.outputs.tag }}
expected-user: root
- name: Push
uses: ./.github/actions/push
- uses: ./.github/actions/push
with:
image-id: ${{ steps.build.outputs.image-id }}
image-tag: ${{ steps.build.outputs.tag }}
Expand All @@ -232,8 +217,7 @@ jobs:
dockerfile-location: ${{ env.DOCKERFILE_LOCATION }}
user-image: ${{ env.USER_IMAGE }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Scan
uses: ./.github/actions/scan
- uses: ./.github/actions/scan
with:
image-id: ${{ steps.build.outputs.image-id }}
image-tag: ${{ steps.build.outputs.tag }}
Expand All @@ -250,21 +234,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint
uses: ./.github/actions/lint
- uses: ./.github/actions/lint
with:
dockerfile-location: ${{ env.DOCKERFILE_LOCATION }}
ignore-linting-rules: DL3002,DL3006
- name: Build
id: build
- id: build
uses: ./.github/actions/build
with:
image-name: ${{ env.IMAGE_NAME }}
base-image: ${{ env.BASE_IMAGE }}
dockerfile-location: ${{ env.DOCKERFILE_LOCATION }}
user-image: ${{ env.USER_IMAGE }}
- name: Push
uses: ./.github/actions/push
- uses: ./.github/actions/push
with:
image-id: ${{ steps.build.outputs.image-id }}
image-tag: ${{ steps.build.outputs.tag }}
Expand All @@ -274,8 +255,7 @@ jobs:
dockerfile-location: ${{ env.DOCKERFILE_LOCATION }}
user-image: ${{ env.USER_IMAGE }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Scan
uses: ./.github/actions/scan
- uses: ./.github/actions/scan
with:
image-id: ${{ steps.build.outputs.image-id }}
image-tag: ${{ steps.build.outputs.tag }}

0 comments on commit 43bd362

Please sign in to comment.