feat: update release workflows to include deploy bundle naming and verification step
This commit is contained in:
1 parent
d8b7b9735b
commit
c2e53ce7d8
3 files changed
+30
-9
No files matched your search
@@ -40,8 +40,8 @@ jobs:
|
||||
VERSION="${{ steps.meta.outputs.version }}"
|
||||
OUT_DIR="dist/release"
|
||||
TAR_PATH="${OUT_DIR}/crud-api-${VERSION}.tar"
|
||||
ZIP_PATH="${OUT_DIR}/crud-api-${VERSION}.zip"
|
||||
ENV_PATH="${OUT_DIR}/.env"
|
||||
ZIP_PATH="${OUT_DIR}/crud-api-${VERSION}-deploy-bundle.zip"
|
||||
ENV_PATH="${OUT_DIR}/crud-api.env"
|
||||
|
||||
mkdir -p "${OUT_DIR}"
|
||||
docker save --output "${TAR_PATH}" "crud-api:${VERSION}"
|
||||
@@ -57,6 +57,12 @@ jobs:
|
||||
zip -j "${ZIP_PATH}" "${TAR_PATH}" "${ENV_PATH}"
|
||||
echo "zip_path=${ZIP_PATH}" >> "${GITHUB_OUTPUT}"
|
||||
|
||||
- name: Verify bundle content
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
unzip -l "${{ steps.bundle.outputs.zip_path }}"
|
||||
|
||||
- name: Create Gitea release with artifact
|
||||
uses: https://gitea.com/actions/gitea-release-action@v1
|
||||
with:
|
||||
@@ -65,8 +71,9 @@ jobs:
|
||||
name: crud-api v${{ steps.meta.outputs.version }}
|
||||
body: |
|
||||
Automated release bundle for crud-api.
|
||||
Download the attached *-deploy-bundle.zip asset from this release.
|
||||
Includes:
|
||||
- Docker image tar
|
||||
- filtered .env for deploy
|
||||
- filtered crud-api.env for deploy
|
||||
files: |
|
||||
${{ steps.bundle.outputs.zip_path }}
|
||||
Reference in new issue
Block a user