From fc92f5466a86a1ca2e8c5ced8449ff09b7f68a3c Mon Sep 17 00:00:00 2001 From: Tobias Brummer Date: Sat, 21 Mar 2026 23:10:17 +0100 Subject: [PATCH] Change to Forgejo Workflow --- {.github => .forgejo}/CODE_OF_CONDUCT.md | 0 {.github => .forgejo}/FUNDING.yml | 0 .../ISSUE_TEMPLATE/bug_report.yml | 0 .../ISSUE_TEMPLATE/config.yml | 0 .../ISSUE_TEMPLATE/feature_request.yml | 0 .../PULL_REQUEST_TEMPLATE.md | 0 {.github => .forgejo}/SECURITY.md | 0 .forgejo/workflows/release.yaml | 43 +++++++++++++++++++ .github/workflows/release.yaml | 39 ----------------- 9 files changed, 43 insertions(+), 39 deletions(-) rename {.github => .forgejo}/CODE_OF_CONDUCT.md (100%) rename {.github => .forgejo}/FUNDING.yml (100%) rename {.github => .forgejo}/ISSUE_TEMPLATE/bug_report.yml (100%) rename {.github => .forgejo}/ISSUE_TEMPLATE/config.yml (100%) rename {.github => .forgejo}/ISSUE_TEMPLATE/feature_request.yml (100%) rename {.github => .forgejo}/PULL_REQUEST_TEMPLATE.md (100%) rename {.github => .forgejo}/SECURITY.md (100%) create mode 100644 .forgejo/workflows/release.yaml delete mode 100644 .github/workflows/release.yaml diff --git a/.github/CODE_OF_CONDUCT.md b/.forgejo/CODE_OF_CONDUCT.md similarity index 100% rename from .github/CODE_OF_CONDUCT.md rename to .forgejo/CODE_OF_CONDUCT.md diff --git a/.github/FUNDING.yml b/.forgejo/FUNDING.yml similarity index 100% rename from .github/FUNDING.yml rename to .forgejo/FUNDING.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.forgejo/ISSUE_TEMPLATE/bug_report.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/bug_report.yml rename to .forgejo/ISSUE_TEMPLATE/bug_report.yml diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.forgejo/ISSUE_TEMPLATE/config.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/config.yml rename to .forgejo/ISSUE_TEMPLATE/config.yml diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.forgejo/ISSUE_TEMPLATE/feature_request.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/feature_request.yml rename to .forgejo/ISSUE_TEMPLATE/feature_request.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.forgejo/PULL_REQUEST_TEMPLATE.md similarity index 100% rename from .github/PULL_REQUEST_TEMPLATE.md rename to .forgejo/PULL_REQUEST_TEMPLATE.md diff --git a/.github/SECURITY.md b/.forgejo/SECURITY.md similarity index 100% rename from .github/SECURITY.md rename to .forgejo/SECURITY.md diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml new file mode 100644 index 0000000..0ee8f1a --- /dev/null +++ b/.forgejo/workflows/release.yaml @@ -0,0 +1,43 @@ +name: Create release +on: + push: + branches: [ "main" ] + +env: + REGISTRY: git.lycaknight.de + +jobs: + release: + runs-on: docker + permissions: + contents: read + packages: write + id-token: write + steps: + - name: Checkout the target Git reference + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ gitea.actor }} + password: ${{ secrets.PORTFOLIO_TOKEN }} + + - name: Set up Golang + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + + - name: Set up Docker buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and push Docker image + id: build-and-push + uses: docker/build-push-action@v6 + with: + tags: ${{ env.REGISTRY }}/${{ gitea.repository }}:latest + platforms: linux/amd64 + push: true \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index 608d82e..0000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,39 +0,0 @@ -name: Create release - -permissions: - contents: write - -on: - push: - tags: - - 'v*' - -jobs: - release: - runs-on: ubuntu-latest - steps: - - name: Checkout the target Git reference - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Log in to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Set up Golang - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - - - name: Set up Docker buildx - uses: docker/setup-buildx-action@v3 - - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - args: release