refactor: rename GITEA secrets and variables to G_ prefix

Rename GITEA_CLONE_URL to G_CLONE_URL in all checkout steps
and update GITEA_TOKEN and GITEA_USERNAME to G_TOKEN and
G_USERNAME for Docker registry authentication. This standardizes
secret naming across the CI/CD pipeline.
This commit is contained in:
db123-test
2026-05-04 09:24:53 +03:30
parent b22db09c2f
commit e29fd6d420

View File

@@ -12,7 +12,7 @@ jobs:
runs-on: shell-ubuntu
steps:
- name: Checkout repo
run: git clone "$GITEA_CLONE_URL" .
run: git clone "$G_CLONE_URL" .
- name: Download dependencies
run: go mod download
@@ -37,7 +37,7 @@ jobs:
needs: lint-and-format
steps:
- name: Checkout repo
run: git clone "$GITEA_CLONE_URL" .
run: git clone "$G_CLONE_URL" .
- name: Build for Linux amd64
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o auth-gate-linux-amd64 .
@@ -61,10 +61,10 @@ jobs:
if: github.event_name == 'push'
steps:
- name: Checkout repo
run: git clone "$GITEA_CLONE_URL" .
run: git clone "$G_CLONE_URL" .
- name: Login to Gitea Registry
run: echo "${{ secrets.GITEA_TOKEN }}" | docker login git.yejayekhoob.com -u "${{ secrets.GITEA_USERNAME }}" --password-stdin
run: echo "${{ secrets.G_TOKEN }}" | docker login git.yejayekhoob.com -u "${{ secrets.G_USERNAME }}" --password-stdin
- name: Set up Docker Buildx
run: docker buildx create --name builder --use