From af2c97a2af63c9b1e31493620be2deff7325bcef Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Thu, 3 Jul 2025 00:12:27 +0000 Subject: [PATCH] Update CD/CI Test functionality --- .gitea/workflows/demo.yaml | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index bca614f..39aa19a 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -1,18 +1,25 @@ -name: Gitea Actions Demo -run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +name: Build-Release + on: [push] jobs: - Explore-Gitea-Actions: + Build-Release: + runs-on: ubuntu-latest steps: - - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - name: Check out repository code uses: actions/checkout@v4 - - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file + + - name: Setup docker build + uses: docker/setup-buildx-action@v3 + + - name: Build docker image + run: docker build --build-arg BASE_URL=https://mistox.com -t myapp:${GITEA_REF_NAME} . + + - name: Create Tarball of image + run: docker save myapp:${GITEA_REF_NAME} -o myapp:${GITEA_REF_NAME}.tar + + - name: Upload Release Artifact + uses: https://gitea.com/actions/upload-release-asset@v1 + with: + tag: ${{ gitea.ref_name }} + file: myapp-${{ gitea.ref_name }}.tar \ No newline at end of file