1515 with :
1616 fetch-depth : 0 # Needed to fetch all history for tag/main comparison
1717
18+ - name : Debug repository info
19+ run : |
20+ echo "Repository: ${{ github.repository }}"
21+ echo "Repository owner: ${{ github.repository_owner }}"
22+ echo "Repository name: ${{ github.event.repository.name }}"
23+ echo "Full repository: ${{ github.repository }}"
24+ echo "GHCR image will be: ghcr.io/${{ github.repository }}"
25+
1826 - name : Check if tag is on main
1927 id : check_tag
2028 run : |
@@ -37,24 +45,14 @@ jobs:
3745 username : ${{ github.actor }}
3846 password : ${{ secrets.GITHUB_TOKEN }}
3947
40- - name : Extract metadata
41- id : meta
42- uses : docker/metadata-action@v5
43- with :
44- images : ghcr.io/${{ github.repository }}
45- tags : |
46- type=semver,pattern={{version}}
47- type=semver,pattern={{major}}.{{minor}}
48- type=ref,event=tag
49- type=raw,value=latest,enable={{is_default_branch}}
50-
5148 - name : Build and push Docker image
5249 uses : docker/build-push-action@v5
5350 with :
5451 context : .
5552 push : true
5653 platforms : linux/amd64
57- tags : ${{ steps.meta.outputs.tags }}
58- labels : ${{ steps.meta.outputs.labels }}
54+ tags : |
55+ ghcr.io/${{ github.repository_owner }}/cosmoxp:latest
56+ ghcr.io/${{ github.repository_owner }}/cosmoxp:${{ github.ref_name }}
5957 cache-from : type=gha
6058 cache-to : type=gha,mode=max
0 commit comments