From f120fb128173ac52dc41b525c2d45ae171d53ff2 Mon Sep 17 00:00:00 2001 From: Arpit Mohan Date: Mon, 27 Jul 2020 12:31:00 +0530 Subject: [PATCH] Fixing the yml file for Github Action (#171) --- .github/workflows/github-release.yml | 36 ++++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml index 5a1d77124f..4f34d1f8fb 100644 --- a/.github/workflows/github-release.yml +++ b/.github/workflows/github-release.yml @@ -37,28 +37,28 @@ jobs: ${{ runner.OS }}- # Install all the dependencies - - name: Install dependencies - run: yarn install + - name: Install dependencies + run: yarn install - - name: Set the build environment based on the branch - id: vars - run: | - REACT_APP_ENVIRONMENT="PRODUCTION" - echo ::set-output name=REACT_APP_ENVIRONMENT::${REACT_APP_ENVIRONMENT} + - name: Set the build environment based on the branch + id: vars + run: | + REACT_APP_ENVIRONMENT="PRODUCTION" + echo ::set-output name=REACT_APP_ENVIRONMENT::${REACT_APP_ENVIRONMENT} - - name: Create the bundle - run: REACT_APP_ENVIRONMENT=${{steps.vars.outputs.REACT_APP_ENVIRONMENT}} yarn build + - name: Create the bundle + run: REACT_APP_ENVIRONMENT=${{steps.vars.outputs.REACT_APP_ENVIRONMENT}} yarn build - - name: Get the version - id: get_version - run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/} + - name: Get the version + id: get_version + run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/} - # Build Docker image and push to Docker Hub - - name: Push production image to Docker Hub with commit tag - run: | - docker build -t appsmith/appsmith-editor:${{steps.get_version.outputs.tag}} . - echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin - docker push appsmith/appsmith-editor + # Build Docker image and push to Docker Hub + - name: Push production image to Docker Hub with commit tag + run: | + docker build -t appsmith/appsmith-editor:${{steps.get_version.outputs.tag}} . + echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin + docker push appsmith/appsmith-editor build-server: runs-on: ubuntu-latest