Skip to content

Commit c804f6e

Browse files
feat: update Docker push workflow with English messages and add job summary
1 parent faba27f commit c804f6e

1 file changed

Lines changed: 26 additions & 8 deletions

File tree

.github/workflows/docker-push.yaml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,25 @@ jobs:
2323
image: kalagaserge/commandkeeper-frontend
2424
steps:
2525
- name: Checkout the repository
26-
run: echo "🔄 Récupération du code source..."
26+
run: echo "🔄 Checking out source code..."
2727
- uses: actions/checkout@v4
2828

2929
- name: Set up Docker Buildx
30-
run: echo "🔧 Configuration de Docker Buildx..."
30+
run: echo "🔧 Setting up Docker Buildx..."
3131
- uses: docker/setup-buildx-action@v3
3232

3333
- name: Set up QEMU
3434
uses: docker/setup-qemu-action@v3
3535

3636
- name: Login to Docker Hub
37-
run: echo "🔐 Connexion à Docker Hub..."
37+
run: echo "🔐 Logging in to Docker Hub..."
3838
- uses: docker/login-action@v3
3939
with:
4040
username: ${{ secrets.DOCKERHUB_USERNAME }}
4141
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
4242

4343
- name: Extract metadata for Docker
44-
run: echo "🏷️ Extraction des métadonnées Docker (${{ matrix.service }})..."
44+
run: echo "🏷️ Extracting Docker metadata (${{ matrix.service }})..."
4545

4646
- name: Extract metadata (labels, tags, etc.) for Docker
4747
id: meta
@@ -52,9 +52,9 @@ jobs:
5252
type=raw,value=latest
5353
type=sha
5454
55-
- name: Build and push Docker image
56-
run: echo "🔨 Construction et publication de l'image Docker multi-plateforme (${{ matrix.service }})..."
57-
- uses: docker/build-push-action@v5
55+
- name: Build and push Docker image (${{ matrix.service }})
56+
id: build
57+
uses: docker/build-push-action@v5
5858
with:
5959
context: ${{ matrix.context }}
6060
file: ${{ matrix.dockerfile }}
@@ -63,4 +63,22 @@ jobs:
6363
tags: ${{ steps.meta.outputs.tags }}
6464
labels: ${{ steps.meta.outputs.labels }}
6565
cache-from: type=gha
66-
cache-to: type=gha,mode=max
66+
cache-to: type=gha,mode=max
67+
68+
- name: Job summary (${{ matrix.service }})
69+
if: always()
70+
run: |
71+
{
72+
echo "## 🐳 Docker push summary — ${{ matrix.service }}"
73+
echo
74+
echo "- **Image**: \`${{ matrix.image }}\`"
75+
echo "- **Context**: \`${{ matrix.context }}\`"
76+
echo "- **Dockerfile**: \`${{ matrix.dockerfile }}\`"
77+
echo "- **Digest**: \`${{ steps.build.outputs.digest }}\`"
78+
echo
79+
echo "### 🏷️ Tags pushed"
80+
echo
81+
echo "\`\`\`"
82+
echo "${{ steps.meta.outputs.tags }}"
83+
echo "\`\`\`"
84+
} >> "$GITHUB_STEP_SUMMARY"

0 commit comments

Comments
 (0)