Update .gitea/workflows/gitea.yaml
This commit is contained in:
parent
75a0455ac9
commit
1eb43708c3
@ -7,9 +7,8 @@ jobs:
|
|||||||
name: build
|
name: build
|
||||||
runs-on: node
|
runs-on: node
|
||||||
steps:
|
steps:
|
||||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
- name: Initialization
|
||||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
run: mkdir /app && cd /app
|
||||||
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Download dependencies
|
- name: Download dependencies
|
||||||
@ -20,12 +19,24 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Building application."
|
echo "Building application."
|
||||||
npm run build --cache .npm --prefer-offline
|
npm run build --cache .npm --prefer-offline
|
||||||
|
- Name: Upload application artifact
|
||||||
|
- uses: actions/upload-artifact@master
|
||||||
|
with:
|
||||||
|
name: application
|
||||||
|
path: /app
|
||||||
dockerize:
|
dockerize:
|
||||||
name: dockerize
|
name: dockerize
|
||||||
runs-on: host
|
runs-on: host
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Download application artifact
|
||||||
|
- uses: actions/download-artifact@master
|
||||||
|
with:
|
||||||
|
name: application
|
||||||
|
path: /app
|
||||||
|
- name: Test
|
||||||
|
run: cd app && ls -la && ls -la /
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user