From a7c608112b82c2da0a5ac21057f9d3ffdbe506da Mon Sep 17 00:00:00 2001 From: emrah Date: Fri, 22 Nov 2024 13:21:00 +0300 Subject: [PATCH] chore(workflow): format the yaml file --- .github/workflows/docker-images.yml | 64 ++++++++++++++--------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/docker-images.yml b/.github/workflows/docker-images.yml index e4df881..84af2a1 100644 --- a/.github/workflows/docker-images.yml +++ b/.github/workflows/docker-images.yml @@ -22,35 +22,35 @@ jobs: id-token: write steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Custom metadata - run: | - echo "BUILD_DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV - echo ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - - name: Metadata - uses: docker/metadata-action@v5 - id: meta - with: - images: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - tags: | - type=raw,value=latest - type=raw,value=v${{ env.BUILD_DATE }} - - - name: Login - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v5 - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + - name: Checkout + uses: actions/checkout@v4 + + - name: Custom metadata + run: | + echo "BUILD_DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV + echo ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + + - name: Metadata + uses: docker/metadata-action@v5 + id: meta + with: + images: | + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=raw,value=latest + type=raw,value=v${{ env.BUILD_DATE }} + + - name: Login + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }}