Skip to content

Commit

Permalink
ci: improve container build workflow step naming
Browse files Browse the repository at this point in the history
  • Loading branch information
fbdtemme committed Sep 13, 2023
1 parent 67a7307 commit f17923e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/actions/build-dev-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ inputs:
default: linux/amd64/v3

outputs:
dev-tag:
description: "The tags that were pushed"
tags:
description: "All tags that were pushed"
value: ${{ steps.meta.outputs.tags }}
dev-tag:
description: "The dev tag that was pushed"
value: ${{ steps.build_input_options.outputs.dev-tag }}

runs:
using: "composite"
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ jobs:
runs-on: ubuntu-latest
needs: [pre_job]
if: needs.pre_job.outputs.paths_result == '{}' || !fromJSON(needs.pre_job.outputs.paths_result).python.should_skip
outputs:
tag: ${{ steps.build_dev_image.outputs.dev-tag }}

steps:
- name: Checkout
Expand All @@ -57,8 +55,8 @@ jobs:
id: setup_build_env
uses: ./.github/actions/setup-image-build-env

- name: Build and push dev image
id: build_dev_image
- name: Build and push images
id: build_image
uses: ./.github/actions/build-dev-image
with:
cache-from: "type=registry,ref=ghcr.io/pixelgentechnologies/pixelator:dev-buildcache"
Expand Down

0 comments on commit f17923e

Please sign in to comment.