Update .gitea/workflows/build.yml
This commit is contained in:
@@ -18,7 +18,6 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Log in to Container Registry
|
- name: Log in to Container Registry
|
||||||
if: github.event_name == 'push'
|
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ vars.PACKAGES_REGISTRY || gitea.server_url }}
|
registry: ${{ vars.PACKAGES_REGISTRY || gitea.server_url }}
|
||||||
@@ -36,7 +35,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: ./web
|
context: ./web
|
||||||
file: ./web/Dockerfile
|
file: ./web/Dockerfile
|
||||||
push: ${{ github.event_name == 'push' }}
|
|
||||||
tags: ${{ steps.meta-web.outputs.tags }}
|
tags: ${{ steps.meta-web.outputs.tags }}
|
||||||
labels: ${{ steps.meta-web.outputs.labels }}
|
labels: ${{ steps.meta-web.outputs.labels }}
|
||||||
cache-from: type=registry,ref=${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/${{ gitea.repository }}/web:buildcache
|
cache-from: type=registry,ref=${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/${{ gitea.repository }}/web:buildcache
|
||||||
@@ -52,7 +50,6 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Log in to Container Registry
|
- name: Log in to Container Registry
|
||||||
if: github.event_name == 'push'
|
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ vars.PACKAGES_REGISTRY || gitea.server_url }}
|
registry: ${{ vars.PACKAGES_REGISTRY || gitea.server_url }}
|
||||||
@@ -70,7 +67,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: ./api
|
context: ./api
|
||||||
file: ./api/Dockerfile
|
file: ./api/Dockerfile
|
||||||
push: ${{ github.event_name == 'push' }}
|
|
||||||
tags: ${{ steps.meta-api.outputs.tags }}
|
tags: ${{ steps.meta-api.outputs.tags }}
|
||||||
labels: ${{ steps.meta-api.outputs.labels }}
|
labels: ${{ steps.meta-api.outputs.labels }}
|
||||||
cache-from: type=registry,ref=${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/${{ gitea.repository }}/api:buildcache
|
cache-from: type=registry,ref=${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/${{ gitea.repository }}/api:buildcache
|
||||||
|
|||||||
Reference in New Issue
Block a user