Skip to content

Commit 9fe5bc5

Browse files
committed
Update: Update docker build
1 parent f88282b commit 9fe5bc5

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/docker-publish.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ jobs:
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

Comments
 (0)