Fix RTS build and push workflow (#4246)

* Update build.sh

* Fix invalid build-arg argument to docker build
This commit is contained in:
Shrikant Sharat Kandula 2021-04-30 16:37:33 +05:30 committed by GitHub
parent 52bfd25824
commit dcf425af7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -64,7 +64,7 @@ jobs:
- name: Push release image to Docker Hub
if: success() && github.ref == 'refs/heads/release'
run: |
docker build --build-arg -t ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-rts:${{steps.vars.outputs.tag}} .
docker build -t ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-rts:${{steps.vars.outputs.tag}} .
echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
#docker push ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-rts:${{steps.vars.outputs.tag}}
@ -72,8 +72,8 @@ jobs:
- name: Push master image to Docker Hub with commit tag
if: success() && github.ref == 'refs/heads/master'
run: |
docker build --build-arg -t ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-rts:${GITHUB_SHA} .
docker build --build-arg -t ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-rts:nightly .
docker build -t ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-rts:${GITHUB_SHA} .
docker build -t ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-rts:nightly .
echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
#docker push ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-rts:${GITHUB_SHA}
#docker push ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-rts:nightly

View File

@ -3,4 +3,5 @@
set -o errexit
cd "$(dirname "$0")"
yarn install --frozen-lockfile
npx tsc