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