From 0ec86799f30049a85cd49b8b91249fcdda5c5324 Mon Sep 17 00:00:00 2001 From: Srijan-SS02 Date: Wed, 29 May 2024 13:28:55 +0530 Subject: [PATCH] chore: format release.yml with prettier Signed-off-by: Srijan-SS02 --- .github/workflows/release.yml | 67 +++++++++++++++++------------------ 1 file changed, 33 insertions(+), 34 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3f35190..ff7c23e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,37 +9,36 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - with: - platforms: all - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Convert repository name to lowercase - run: echo "REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV - - - - name: Get release tag name - id: vars - run: echo "RELEASE_TAG=$(echo ${{ github.event.release.tag_name }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV - - - name: Build and push Docker image - uses: docker/build-push-action@v5 - with: - context: . - push: true - tags: | - ghcr.io/${{ env.REPOSITORY }}/sarthi:latest - ghcr.io/${{ env.REPOSITORY }}/sarthi:${{ env.RELEASE_TAG }} + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + with: + platforms: all + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Convert repository name to lowercase + run: echo "REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV + + - name: Get release tag name + id: vars + run: echo "RELEASE_TAG=$(echo ${{ github.event.release.tag_name }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV + + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: | + ghcr.io/${{ env.REPOSITORY }}/sarthi:latest + ghcr.io/${{ env.REPOSITORY }}/sarthi:${{ env.RELEASE_TAG }}