diff --git a/.gitea/workflows/workflow.yml b/.gitea/workflows/workflow.yml index 6a0911f..c9cd7c2 100644 --- a/.gitea/workflows/workflow.yml +++ b/.gitea/workflows/workflow.yml @@ -28,23 +28,31 @@ jobs: - name: Test run: yarn test + + - name: Build + run: yarn build - - uses: docker/setup-buildx-action@v3 - - name: Login to Gitea registry - uses: docker/login-action@v3 - with: - registry: docker.allmy.work - username: ${{ gitea.actor }} - password: ${{ secrets.REGISTRY_TOKEN }} - - name: Build and push - uses: docker/build-push-action@v6 - with: - context: . - push: ${{ gitea.event_name != 'pull_request' }} - build-args: | - 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 \ No newline at end of file + # publish: + # needs: [build] + # runs-on: ubuntu-latest + # if: github.ref == 'refs/heads/main' + # steps: + # - uses: docker/setup-buildx-action@v3 + # - name: Login to Gitea registry + # uses: docker/login-action@v3 + # with: + # registry: docker.allmy.work + # username: ${{ gitea.actor }} + # password: ${{ secrets.REGISTRY_TOKEN }} + # - name: Build and push + # uses: docker/build-push-action@v6 + # with: + # context: . + # push: ${{ gitea.event_name != 'pull_request' }} + # build-args: | + # 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 \ No newline at end of file