Skip to content

Commit

Permalink
Release workflow fix
Browse files Browse the repository at this point in the history
Signed-off-by: Janos SUTO <sj@acts.hu>
  • Loading branch information
jsuto committed Dec 20, 2024
1 parent 92419e8 commit f600e4c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 37 deletions.
6 changes: 6 additions & 0 deletions .github/actions/build/image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ runs:
uses: actions/download-artifact@v4
with:
path: docker
merge-multiple: true

- name: List docker dir
run: |
ls -la docker
shell: bash

- name: Build image from package
uses: docker/build-push-action@v5
Expand Down
42 changes: 5 additions & 37 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create release
name: Create new release

on:
push:
Expand All @@ -16,8 +16,7 @@ permissions:
jobs:
get-version:
runs-on:
- self-hosted
- X64
- ubuntu-latest

outputs:
IMAGE_TAG: ${{ steps.get-version.outputs.IMAGE_TAG }}
Expand Down Expand Up @@ -45,8 +44,7 @@ jobs:
arch: ['amd64','arm64']

runs-on:
- self-hosted
- ${{ matrix.arch }}
- ubuntu-latest

outputs:
PACKAGE: ${{ steps.build-package.outputs.PACKAGE }}
Expand All @@ -71,15 +69,10 @@ jobs:
- build-package

runs-on:
- self-hosted
- X64
- ubuntu-latest

steps:
- name: Download packages
uses: actions/download-artifact@v4
with:
path: docker
merge-multiple: true
- uses: actions/checkout@v4

- name: Build image
uses: ./.github/actions/build/image
Expand All @@ -91,28 +84,3 @@ jobs:
PACKAGE: ${{ env.PROJECT_ID }}_${{ needs.get-version.outputs.VERSION }}-${{ env.DISTRO }}-${{ needs.get-version.outputs.COMMIT_ID }}
PLATFORMS: 'linux/amd64,linux/arm64'
PUSH: true

create-release:
needs:
- build-package

runs-on:
- self-hosted
- X64

steps:
- name: Download packages
uses: actions/download-artifact@v4
with:
merge-multiple: true

- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#*-}" \
--generate-notes
gh release upload "$tag" piler*deb

0 comments on commit f600e4c

Please sign in to comment.