From f146481ca642cb48cb48e764e26fef892f650b49 Mon Sep 17 00:00:00 2001 From: MultiMote Date: Wed, 14 May 2025 12:24:58 +0300 Subject: [PATCH] Build Docker image using Gitea Actions --- .../workflows/publish-docker-image.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) rename {.github => .gitea}/workflows/publish-docker-image.yml (66%) diff --git a/.github/workflows/publish-docker-image.yml b/.gitea/workflows/publish-docker-image.yml similarity index 66% rename from .github/workflows/publish-docker-image.yml rename to .gitea/workflows/publish-docker-image.yml index ac7d451..d37450d 100644 --- a/.github/workflows/publish-docker-image.yml +++ b/.gitea/workflows/publish-docker-image.yml @@ -1,20 +1,13 @@ -name: Publish a Docker image +name: Build and publish a Docker image on: - # push: - # branches: - # - main + push: + branches: + - main # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. -permissions: - contents: read - packages: write - attestations: write - id-token: write - jobs: build-and-push-image: runs-on: ubuntu-latest @@ -28,8 +21,8 @@ jobs: uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ secrets.GH_PACKAGES_USERNAME }} + password: ${{ secrets.GH_PACKAGES_TOKEN }} - name: Build and push Docker image id: push