diff --git a/.github/workflows/build-push.yaml b/.github/workflows/build-push.yaml index 60906c0..89a4d56 100644 --- a/.github/workflows/build-push.yaml +++ b/.github/workflows/build-push.yaml @@ -17,14 +17,18 @@ jobs: packages: write steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 - - id: branch-name + - name: Checkout - Branch name + id: branch-name uses: tj-actions/branch-names@v8 - - uses: docker/setup-buildx-action@v3 + - name: Setup - BuildX + uses: docker/setup-buildx-action@v3 - - uses: docker/login-action@v3 + - name: Login - Docker + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -32,7 +36,8 @@ jobs: # determine the global tag to append to the image, 'latest', 'edge', or 'cutting-edge' # outputs 'date', 'tag' and 'custom-version' - - id: global-tag + - name: Docker - Determine tag + id: global-tag run: | is_tag="${{ env.IS-TAG }}" is_default="${{ steps.branch-name.outputs.is_default }}" @@ -49,7 +54,8 @@ jobs: echo "custom-version=cutting-edge" >> "$GITHUB_OUTPUT" fi - - id: meta + - name: Docker - Metadata + id: meta uses: docker/metadata-action@v5 with: flavor: latest=false @@ -62,7 +68,8 @@ jobs: # add global tag type=raw,priority=700,value=${{ steps.global-tag.outputs.tag }} - - uses: docker/build-push-action@v5 + - name: Docker - Build / Push + uses: docker/build-push-action@v5 with: context: . build-args: CUSTOM_VERSION=${{ steps.global-tag.outputs.custom-version }} @@ -74,7 +81,8 @@ jobs: cache-to: type=gha,mode=max # Create a job summary that contains the pushed images - - run: | + - name: Docker - Image job summary + run: | echo "## Pushed docker images :cloud:" >> $GITHUB_STEP_SUMMARY tags="${{ steps.meta.outputs.tags }}"