Update .gitea/workflows/gitea.yaml
All checks were successful
Tomcode landing build/deploy / dockerize (push) Successful in 14s
Tomcode landing build/deploy / build (push) Successful in 30s

This commit is contained in:
thomas 2024-09-22 13:29:10 +02:00
parent 2b74514c2b
commit 75a0455ac9

View File

@ -3,15 +3,29 @@ run-name: Tomcode landing is being built and deployed 🚀
on: [push] on: [push]
jobs: 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: dockerize:
name: dockerize name: dockerize
runs-on: node runs-on: host
container: container:
image: catthehacker/ubuntu:act-latest image: catthehacker/ubuntu:act-latest
steps: steps:
- name: test
run: echo ${{ vars.DOCKER_USER }} ${{ secrets.DOCKER_PASSWORD }}
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v3