diff --git a/.gitea/workflows/docker_build.yml b/.gitea/workflows/docker_build.yml index e32102c..721cc1a 100644 --- a/.gitea/workflows/docker_build.yml +++ b/.gitea/workflows/docker_build.yml @@ -22,23 +22,26 @@ jobs: run: | echo "${{ secrets.GITEATOKEN }}" | docker login "${{ env.REGISTRY_HOST }}" -u "${{ github.actor }}" --password-stdin env: - REGISTRY_HOST: http://gitea:3000 # ← ЗАМЕНИТЕ на ваш домен или IP:порт + REGISTRY_HOST: https://git.home # ← ЗАМЕНИТЕ на ваш домен или IP:порт - - name: Extract metadata (tags, labels) - id: meta - uses: docker/metadata-action@v5 - with: - images: | - ${{ env.REGISTRY_HOST }}/${{ github.repository }} - tags: | - type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} - type=sha,format=short,prefix= - type=ref,event=tag + # - name: Extract metadata (tags, labels) + # id: meta + # uses: docker/metadata-action@v5 + # with: + # images: | + # ${{ env.REGISTRY_HOST }}/${{ github.repository }} + # tags: | + # type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} + # type=sha,format=short,prefix= + # type=ref,event=tag - name: Build and push Docker image uses: docker/build-push-action@v6 with: context: . push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + tags: user/app:latest, user/app:v1.0.0 + cache-from: type=registry,ref=user/app:buildcache + cache-to: type=registry,ref=user/app:buildcache,mode=max + # tags: ${{ steps.meta.outputs.tags }} + # labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml deleted file mode 100644 index 394c807..0000000 --- a/.gitea/workflows/test.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Gitea Actions Demo -run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 -on: [push] - -jobs: - Explore-Gitea-Actions: - runs-on: ubuntu-latest - steps: - - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file