Skip to content

Commit

Permalink
feat: upload apisix-runtime artifact (#343)
Browse files Browse the repository at this point in the history
Signed-off-by: Sn0rt <[email protected]>
  • Loading branch information
Sn0rt authored Oct 26, 2023
1 parent a32bc50 commit 3009682
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ jobs:
make package type=deb app=${TAG_TYPE} checkout=${TAG_VERSION} version=${TAG_VERSION} image_base=${VAR_OS} image_tag=${VAR_OS_RELEASE} openresty=apisix-base
mv ./output/${TAG_TYPE}_${TAG_VERSION}-0~${VAR_OS}${VAR_OS_RELEASE}_amd64.deb ${VAR_DEB_WORKBENCH_DIR}
- name: Upload apisix/apisix-base Artifact
uses: actions/[email protected]
with:
name: "${{ env.TAG_TYPE }}_${{ env.TAG_VERSION }}-0~${{ env.VAR_OS }}${{ env.VAR_OS_RELEASE }}_amd64.deb"
path: "${{ env.VAR_DEB_WORKBENCH_DIR }}/${{ env.TAG_TYPE}}_${{ env.TAG_VERSION }}-0~${{ env.VAR_OS }}${{ env.VAR_OS_RELEASE }}_amd64.deb"

- name: Build apisix-runtime deb Package
if: ${{ env.TAG_TYPE == 'apisix-runtime' }}
run: |
Expand All @@ -64,7 +70,7 @@ jobs:
make package type=deb app=${TAG_TYPE} checkout=${TAG_VERSION} version=${TAG_VERSION} image_base=${VAR_OS} image_tag=${VAR_OS_RELEASE} openresty=apisix-runtime
mv ./output/${TAG_TYPE}_${TAG_VERSION}-0~${VAR_OS}${VAR_OS_RELEASE}_amd64.deb ${VAR_DEB_WORKBENCH_DIR}
- name: Upload apisix/apisix-base Artifact
- name: Upload apisix/apisix-runtime Artifact
uses: actions/[email protected]
with:
name: "${{ env.TAG_TYPE }}_${{ env.TAG_VERSION }}-0~${{ env.VAR_OS }}${{ env.VAR_OS_RELEASE }}_amd64.deb"
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,20 @@ jobs:
name: "apisix-base-${{ steps.tag_env.outputs.version}}-0.el7.x86_64.rpm"
path: "${{ env.VAR_RPM_WORKBENCH_DIR }}/apisix-base-${{ steps.tag_env.outputs.version}}-0.el7.x86_64.rpm"

- name: Upload apisix-runtime Artifact for Redhat
if: ${{ startsWith(steps.tag_type.outputs.version, 'apisix-runtime/') }}
uses: actions/[email protected]
with:
name: "apisix-base-${{ steps.tag_env.outputs.version}}-0.ubi8.6.x86_64.rpm"
path: "${{ env.VAR_RPM_WORKBENCH_DIR }}/apisix-runtime-${{ steps.tag_env.outputs.version}}-0.ubi8.6.x86_64.rpm"

- name: Upload apisix-runtime Artifact for Centos
if: ${{ startsWith(steps.tag_type.outputs.version, 'apisix-runtime/') }}
uses: actions/[email protected]
with:
name: "apisix-base-${{ steps.tag_env.outputs.version}}-0.el7.x86_64.rpm"
path: "${{ env.VAR_RPM_WORKBENCH_DIR }}/apisix-runtime-${{ steps.tag_env.outputs.version}}-0.el7.x86_64.rpm"

- name: Upload apisix-dashboard Artifact
if: ${{ startsWith(steps.tag_type.outputs.version, 'dashboard/') }}
uses: actions/[email protected]
Expand Down

0 comments on commit 3009682

Please sign in to comment.