Skip to content

Commit

Permalink
Update on-demand-build-docker-image-deploy-preview.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pratapaprasanna committed Aug 3, 2023
1 parent 09fa5a1 commit 62f80bc
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/on-demand-build-docker-image-deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,19 +167,22 @@ jobs:
- name: Generate info.json
run: scripts/generate_info_json.sh

- name: Push to Docker Hub
uses: docker/build-push-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
repository: ${{ vars.DOCKER_HUB_ORGANIZATION }}/appsmith-dp
tags: ci-${{ github.event.client_payload.pull_request.number }}

- name: Push to Docker Hub
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
${{ vars.DOCKER_HUB_ORGANIZATION }}/appsmith-dp:ci-${{ github.event.client_payload.pull_request.number }}
build-args: |
APPSMITH_CLOUD_SERVICES_BASE_URL=https://release-cs.appsmith.com
outputs:
imageHash: ci-${{ github.event.client_payload.pull_request.number }}

build-deploy-preview:
needs: [push-image]
runs-on: ubuntu-latest
Expand Down

0 comments on commit 62f80bc

Please sign in to comment.