Skip to content

Commit

Permalink
Merge pull request #134 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Improve CD workflow
  • Loading branch information
andyone authored Jun 5, 2024
2 parents 492b32d + 0caeb7b commit 9c56113
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,29 +157,7 @@ jobs:
exit 0
fi
- name: Build and push images (DockerHub)
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/build-push-action@v5
with:
push: true
context: .
file: ${{steps.metadata.outputs.dockerfile}}
build-args: |
REGISTRY=docker.io
tags: ${{steps.metadata.outputs.dh_tags}}

- name: Build and push images (GHCR)
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/build-push-action@v5
with:
push: true
context: .
file: ${{steps.metadata.outputs.dockerfile}}
build-args: |
REGISTRY=ghcr.io
tags: ${{steps.metadata.outputs.gh_tags}}

- name: Build and push images (YCCR)
- name: Build and push image
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/build-push-action@v5
with:
Expand All @@ -188,7 +166,10 @@ jobs:
file: ${{steps.metadata.outputs.dockerfile}}
build-args: |
REGISTRY=ghcr.io
tags: ${{steps.metadata.outputs.yc_tags}}
tags: |
${{ steps.metadata.outputs.dh_tags }}
${{ steps.metadata.outputs.gh_tags }}
${{ steps.metadata.outputs.yc_tags }}
- name: Show info about built image
if: ${{ steps.build_check.outputs.build == 'true' }}
Expand Down

0 comments on commit 9c56113

Please sign in to comment.