Update .gitea/workflows/main.yml
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
This commit is contained in:
parent
39efee7c7b
commit
6e8c2f2f1b
@ -15,14 +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: Set up Docker
|
- name: Set up Docker
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
@ -36,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=${{ github.ref == 'refs/heads/main' }}
|
type=raw,value=main,enable=${{ github.ref == 'refs/heads/main' }}
|
||||||
@ -46,8 +38,15 @@ jobs:
|
|||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: ./apps/api
|
||||||
file: apps/api/Dockerfile
|
file: ./apps/api/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
cache-from: type=local,src=/opt/hostedtoolcache/${{ github.repository }}-${{ github.ref_name }}/build/
|
||||||
|
cache-to: type=local,dest=/opt/hostedtoolcache/${{ github.repository }}-${{ github.ref_name }}/build-new/
|
||||||
|
|
||||||
|
- name: Rotate build cache
|
||||||
|
run: |
|
||||||
|
rm -rf /opt/hostedtoolcache/${{ github.repository }}-${{ github.ref_name }}/build/
|
||||||
|
mv /opt/hostedtoolcache/${{ github.repository }}-${{ github.ref_name }}/build-new/ /opt/hostedtoolcache/${{ github.repository }}-${{ github.ref_name }}/build/
|
||||||
|
Loading…
Reference in New Issue
Block a user