From 75a0455ac9a2e8a5dbe38c880e9e37b3050c9576 Mon Sep 17 00:00:00 2001 From: thomas Date: Sun, 22 Sep 2024 13:29:10 +0200 Subject: [PATCH] Update .gitea/workflows/gitea.yaml --- .gitea/workflows/gitea.yaml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/gitea.yaml b/.gitea/workflows/gitea.yaml index 819407a..8048054 100644 --- a/.gitea/workflows/gitea.yaml +++ b/.gitea/workflows/gitea.yaml @@ -3,15 +3,29 @@ run-name: Tomcode landing is being built and deployed 🚀 on: [push] jobs: - + build: + name: build + runs-on: node + 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 + - name: Download dependencies + run: | + echo "Downloading dependencies." + npm ci --cache .npm --prefer-offline + - name: Build + run: | + echo "Building application." + npm run build --cache .npm --prefer-offline dockerize: name: dockerize - runs-on: node + runs-on: host container: image: catthehacker/ubuntu:act-latest steps: - - name: test - run: echo ${{ vars.DOCKER_USER }} ${{ secrets.DOCKER_PASSWORD }} - name: Set up QEMU uses: docker/setup-qemu-action@v3