cicd: fix GITEA_TOKEN
/ build (push) Has been cancelled

This commit is contained in:
Alek Kim
2026-07-13 13:48:56 +09:00
parent 273d80dd72
commit c0884d9978
+12 -3
View File
@@ -22,20 +22,29 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4 uses: docker/setup-buildx-action@v4
- name: Extract Registry Hostname
id: registry
run: |
# Strip https:// or http:// prefix using bash parameter expansion
URL="${{ github.server_url }}"
HOST="${URL#*://}"
echo "host=$HOST" >> "$GITHUB_OUTPUT"
- name: Docker Meta Action - name: Docker Meta Action
uses: docker/metadata-action@v6 uses: docker/metadata-action@v6
id: meta id: meta
with: with:
images: ${{ github.server_url }}/${{ github.repository }} images: ${{ steps.registry.outputs.host }}/${{ github.repository }}
tags: | tags: |
type=ref,event=tag type=ref,event=tag
type=sha,format=short type=sha,format=short
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
- name: Log in to Gitea Container Registry - name: Log in to Gitea Container Registry
uses: docker/login-action@v4 uses: docker/login-action@v4
with: with:
registry: ${{ github.server_url }} registry: ${{ steps.registry.outputs.host }}
username: beejay username: ${{ secrets.USERNAME }}
password: ${{ secrets.TOKEN }} password: ${{ secrets.TOKEN }}
- name: Build Docker image - name: Build Docker image