Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build action: rename to HiDrive next #70

Merged
merged 3 commits into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: EasyCloud Build
name: HiDrive Next Build

# SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2024 STRATO AG
# SPDX-License-Identifier: AGPL-3.0-or-later

# The EasyCloud source is packaged as a container image.
# The HiDrive Next source is packaged as a container image.
# This is a workaround because releases can not be created without tags
# and we want to be able to create snapshots from branches.

Expand Down Expand Up @@ -33,22 +33,22 @@ on:
- ionos-dev30

env:
TARGET_PACKAGE_NAME: easy-storage.zip
TARGET_PACKAGE_NAME: hidrive-next.zip
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

permissions:
contents: read

jobs:
easycloud-build:
hidrive-next-build:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

name: easycloud-build
name: hidrive-next-build
steps:
- name: Checkout server
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
Expand Down 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
Loading