cicd: Добавлен файл с CICD проверками для Gitea Actions #2
@@ -28,23 +28,31 @@ jobs:
|
|||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: yarn test
|
run: yarn test
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: yarn build
|
||||||
|
|
||||||
- uses: docker/setup-buildx-action@v3
|
# publish:
|
||||||
- name: Login to Gitea registry
|
# needs: [build]
|
||||||
uses: docker/login-action@v3
|
# runs-on: ubuntu-latest
|
||||||
with:
|
# if: github.ref == 'refs/heads/main'
|
||||||
registry: docker.allmy.work
|
# steps:
|
||||||
username: ${{ gitea.actor }}
|
# - uses: docker/setup-buildx-action@v3
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
# - name: Login to Gitea registry
|
||||||
- name: Build and push
|
# uses: docker/login-action@v3
|
||||||
uses: docker/build-push-action@v6
|
# with:
|
||||||
with:
|
# registry: docker.allmy.work
|
||||||
context: .
|
# username: ${{ gitea.actor }}
|
||||||
push: ${{ gitea.event_name != 'pull_request' }}
|
# password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
build-args: |
|
# - name: Build and push
|
||||||
PB_PUBLIC_URL=${{ vars.PB_PUBLIC_URL }}
|
# uses: docker/build-push-action@v6
|
||||||
tags: |
|
# with:
|
||||||
docker.allmy.work/${{ gitea.repository }}:latest
|
# context: .
|
||||||
docker.allmy.work/${{ gitea.repository }}:${{ gitea.sha }}
|
# push: ${{ gitea.event_name != 'pull_request' }}
|
||||||
cache-from: type=registry,ref=docker.allmy.work/${{ gitea.repository }}:buildcache
|
# build-args: |
|
||||||
cache-to: type=registry,ref=docker.allmy.work/${{ gitea.repository }}:buildcache,mode=max
|
# PB_PUBLIC_URL=${{ vars.PB_PUBLIC_URL }}
|
||||||
|
# tags: |
|
||||||
|
# docker.allmy.work/${{ gitea.repository }}:latest
|
||||||
|
# docker.allmy.work/${{ gitea.repository }}:${{ gitea.sha }}
|
||||||
|
# cache-from: type=registry,ref=docker.allmy.work/${{ gitea.repository }}:buildcache
|
||||||
|
# cache-to: type=registry,ref=docker.allmy.work/${{ gitea.repository }}:buildcache,mode=max
|
||||||
Reference in New Issue
Block a user