Skip to content

Commit

Permalink
enable publishing for alpine,debian,fedora,opensuse
Browse files Browse the repository at this point in the history
  • Loading branch information
MusicDin committed Mar 15, 2024
1 parent 7659887 commit 7a69838
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 15 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/image-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
inputs:
publish:
type: boolean
default: false
default: true
description: Publish built image

jobs:
Expand Down Expand Up @@ -95,6 +95,7 @@ jobs:

- name: Upload image
uses: ./.github/actions/image-upload
if: inputs.publish == true
with:
image_name: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}"
image_dir: "${{ env.target }}"
Expand All @@ -103,8 +104,3 @@ jobs:
ssh_user: "${{ secrets.IMAGESERVER_SSH_USER }}"
ssh_private_key: "${{ secrets.IMAGESERVER_SSH_PK }}"
ssh_base_dir: "${{ secrets.IMAGESERVER_SSH_BASE_DIR }}"

- name: Tmate debugging session
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 30
11 changes: 8 additions & 3 deletions .github/workflows/image-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
inputs:
publish:
type: boolean
default: false
default: true
description: Publish built image

jobs:
Expand Down Expand Up @@ -87,5 +87,10 @@ jobs:
uses: ./.github/actions/image-upload
if: inputs.publish == true
with:
name: "${{ env.distro }}-${{ matrix.release }}-${{ matrix.architecture }}-${{ matrix.variant }}"
target: ${{ env.target }}
image_name: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}"
image_dir: "${{ env.target }}"
ssh_ip: "${{ secrets.IMAGESERVER_SSH_IP }}"
ssh_port: "${{ secrets.IMAGESERVER_SSH_PORT }}"
ssh_user: "${{ secrets.IMAGESERVER_SSH_USER }}"
ssh_private_key: "${{ secrets.IMAGESERVER_SSH_PK }}"
ssh_base_dir: "${{ secrets.IMAGESERVER_SSH_BASE_DIR }}"
11 changes: 8 additions & 3 deletions .github/workflows/image-fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
inputs:
publish:
type: boolean
default: false
default: true
description: Publish built image

jobs:
Expand Down Expand Up @@ -88,5 +88,10 @@ jobs:
uses: ./.github/actions/image-upload
if: inputs.publish == true
with:
name: "${{ env.distro }}-${{ matrix.release }}-${{ matrix.architecture }}-${{ matrix.variant }}"
target: ${{ env.target }}
image_name: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}"
image_dir: "${{ env.target }}"
ssh_ip: "${{ secrets.IMAGESERVER_SSH_IP }}"
ssh_port: "${{ secrets.IMAGESERVER_SSH_PORT }}"
ssh_user: "${{ secrets.IMAGESERVER_SSH_USER }}"
ssh_private_key: "${{ secrets.IMAGESERVER_SSH_PK }}"
ssh_base_dir: "${{ secrets.IMAGESERVER_SSH_BASE_DIR }}"
11 changes: 8 additions & 3 deletions .github/workflows/image-opensuse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
inputs:
publish:
type: boolean
default: false
default: true
description: Publish built image

jobs:
Expand Down Expand Up @@ -95,5 +95,10 @@ jobs:
uses: ./.github/actions/image-upload
if: inputs.publish == true
with:
name: "${{ env.distro }}-${{ matrix.release }}-${{ matrix.architecture }}-${{ matrix.variant }}"
target: ${{ env.target }}
image_name: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}"
image_dir: "${{ env.target }}"
ssh_ip: "${{ secrets.IMAGESERVER_SSH_IP }}"
ssh_port: "${{ secrets.IMAGESERVER_SSH_PORT }}"
ssh_user: "${{ secrets.IMAGESERVER_SSH_USER }}"
ssh_private_key: "${{ secrets.IMAGESERVER_SSH_PK }}"
ssh_base_dir: "${{ secrets.IMAGESERVER_SSH_BASE_DIR }}"

0 comments on commit 7a69838

Please sign in to comment.