Skip to content

Commit

Permalink
updates CI
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Jun 21, 2024
1 parent 891f57a commit 72e5d42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/actions/docker_build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ outputs:
value: ${{ steps.meta.outputs.version }}
created:
description: 'True if new image has been created'
value: ${{ !steps.image_status.outputs.updated }}
value: ${{ steps.status.outputs.created }}
digest:
description: 'Built image digest'
value: ${{ !steps.build_push.outputs.digest }}
value: ${{ steps.build_push.outputs.digest }}
imageId:
description: 'Built image ID'
value: ${{ !steps.build_push.outputs.imageId }}
value: ${{ steps.build_push.outputs.imageId }}


runs:
Expand Down Expand Up @@ -183,9 +183,11 @@ runs:
VERSION=${{ steps.meta.outputs.version }}
SOURCE_COMMIT=${{ steps.last_commit.outputs.last_commit_short_sha }}
- name: Status
id: status
if: (steps.image_status.outputs.updated != 'true' || inputs.rebuild == 'true') && inputs.dryrun != 'true'
shell: bash
run: |
echo "${{ toJSON(steps.build_push.outputs) }}"
regctl image inspect -p linux/amd64 ${{ steps.image_name.outputs.name }}
echo "::notice:: Image ${{ steps.meta.outputs.tags }} successfully built and pushed"
echo "created=true" >> $GITHUB_OUTPUT
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
uses: actions/[email protected]
- id: checksum
uses: ./.github/actions/checksum
- name: Build and Test
- name: Build Image
id: build
uses: ./.github/actions/docker_build
with:
Expand Down Expand Up @@ -179,6 +179,7 @@ jobs:
refs/heads/develop
refs/heads/staging
refs/heads/master
refs/heads/release/
', github.ref) || contains(github.event.head_commit.message, 'ci:release') || github.event_name == 'create'

name: "Release Docker"
Expand Down

0 comments on commit 72e5d42

Please sign in to comment.