Update .gitea/workflows/main.yml
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 29s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 29s
This commit is contained in:
parent
e11c7d2e5c
commit
1ac06ccf35
@ -15,21 +15,6 @@ jobs:
|
|||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Node.js
|
|
||||||
uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
node-version: '20'
|
|
||||||
|
|
||||||
- name: Install pnpm
|
|
||||||
run: npm install -g pnpm
|
|
||||||
|
|
||||||
- name: Download dependencies to cache
|
|
||||||
run: |
|
|
||||||
mkdir -p /opt/hostedtoolcache/${{ gitea.repository }}-${{ gitea.ref_name }}/pnpm/
|
|
||||||
pnpm fetch --prod --lockfile-dir=apps/api --store-dir /opt/hostedtoolcache/${{ gitea.repository }}-${{ gitea.ref_name }}/pnpm/
|
|
||||||
mkdir -p ${{ gitea.workspace }}/cache
|
|
||||||
cp -r /opt/hostedtoolcache/${{ gitea.repository }}-${{ gitea.ref_name }}/pnpm/* ${{ gitea.workspace }}/cache/
|
|
||||||
|
|
||||||
- name: Set up Docker
|
- name: Set up Docker
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
@ -43,7 +28,7 @@ jobs:
|
|||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
id: meta
|
id: meta
|
||||||
with:
|
with:
|
||||||
images: vontainment/v-gpt-node-app
|
images: vontainment/v-firecrawl
|
||||||
flavor: latest=false
|
flavor: latest=false
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=main,enable=${{ gitea.ref == 'refs/heads/main' }}
|
type=raw,value=main,enable=${{ gitea.ref == 'refs/heads/main' }}
|
||||||
@ -58,8 +43,6 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
build-args: |
|
|
||||||
PNPM_CACHE=${{ gitea.workspace }}/cache
|
|
||||||
cache-from: type=local,src=/opt/hostedtoolcache/${{ gitea.repository }}-${{ gitea.ref_name }}/build/
|
cache-from: type=local,src=/opt/hostedtoolcache/${{ gitea.repository }}-${{ gitea.ref_name }}/build/
|
||||||
cache-to: type=local,dest=/opt/hostedtoolcache/${{ gitea.repository }}-${{ gitea.ref_name }}/build-new/
|
cache-to: type=local,dest=/opt/hostedtoolcache/${{ gitea.repository }}-${{ gitea.ref_name }}/build-new/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user