Skip to content

Commit

Permalink
IONOS(ci): split action to build and push to ghcr.io
Browse files Browse the repository at this point in the history
in order to be able to define different targets

Signed-off-by: Misha M.-Kupriyanov <[email protected]>
  • Loading branch information
printminion-co committed Dec 11, 2024
1 parent dd3dd9d commit eb6f86d
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/hidrive-next-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,35 @@ jobs:
- name: Zip dependencies
run: make -f IONOS/Makefile zip_dependencies TARGET_PACKAGE_NAME=${{ env.TARGET_PACKAGE_NAME }}

- name: Upload artifact result for job hidrive-next-build
uses: actions/upload-artifact@v4
with:
name: hidrive_next_build_zip
path: ${{ env.TARGET_PACKAGE_NAME }}

- name: Show changes on failure
if: failure()
run: |
git status
git --no-pager diff
exit 1 # make it red to grab attention
hidirve-next-artifact-to-ghcr_io:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

name: Push artifact to ghcr.io
needs: hidrive-next-build

steps:
- name: Download artifact zip
uses: actions/download-artifact@v4
with:
name: hidrive_next_build_zip

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
Expand Down Expand Up @@ -134,6 +163,4 @@ jobs:
- name: Show changes on failure
if: failure()
run: |
git status
git --no-pager diff
exit 1 # make it red to grab attention

0 comments on commit eb6f86d

Please sign in to comment.