diff --git a/.gitea/workflows/docker_build.yml b/.gitea/workflows/docker_build.yml index c7e6e65..8b22762 100644 --- a/.gitea/workflows/docker_build.yml +++ b/.gitea/workflows/docker_build.yml @@ -22,9 +22,9 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - # - name: Log in to Gitea Container Registry - # run: | - # echo "${{ secrets.GITEATOKEN }}" | docker login "${{ env.REGISTRY_HOST }}" -u "${{ github.actor }}" --password-stdin + - name: Log in to Gitea Container Registry + run: | + echo "${{ secrets.GIT_PASSWORD }}" | docker login "${{ env.REGISTRY_HOST }}" -u "${{ github.actor }}" --password-stdin # - name: Extract metadata (tags, labels) @@ -38,24 +38,35 @@ jobs: # type=sha,format=short,prefix= # type=ref,event=tag - - name: Log in to Gitea Container Registry - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY_HOST }} - username: ${{ gitea.actor }} - password: ${{ secrets.GIT_PASSWORD }} + # - name: Log in to Gitea Container Registry + # uses: docker/login-action@v3 + # with: + # registry: ${{ env.REGISTRY_HOST }} + # username: ${{ gitea.actor }} + # password: ${{ secrets.GIT_PASSWORD }} - - name: Build and push Docker image - uses: docker/build-push-action@v6 - with: - context: . - push: true - platforms: linux/amd64 - tags: ${{ gitea.actor }}/n8n-ffmpeg-proxy:${{ gitea.sha }} - build-args: | - USER_ID=1000 - GROUP_ID=1000 - #cache-from: type=registry,ref=drholy/n8n-ffmpeg-proxy:buildcache - #cache-to: type=registry,ref=drholy/n8n-ffmpeg-proxy:buildcache,mode=max - # tags: ${{ steps.meta.outputs.tags }} - # labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + # - name: Build and push Docker image + # uses: docker/build-push-action@v6 + # with: + # context: . + # push: true + # platforms: linux/amd64 + # tags: ${{ gitea.actor }}/n8n-ffmpeg-proxy:${{ gitea.sha }} + # build-args: | + # USER_ID=1000 + # GROUP_ID=1000 + + - name: Build and push + run: | + docker buildx build \ + --push \ + --platform linux/amd64 \ + --tag git.home:5000/drholy/n8n-ffmpeg-proxy:${GITHUB_SHA} \ + --tag git.home:5000/drholy/n8n-ffmpeg-proxy:latest \ + . + + + #cache-from: type=registry,ref=drholy/n8n-ffmpeg-proxy:buildcache + #cache-to: type=registry,ref=drholy/n8n-ffmpeg-proxy:buildcache,mode=max + # tags: ${{ steps.meta.outputs.tags }} + # labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file