From 0bff7ca165f9291714626eb02e87533ff3d79058 Mon Sep 17 00:00:00 2001 From: Arpit Mohan Date: Tue, 28 Jul 2020 17:33:05 +0530 Subject: [PATCH] Adding nightly builds that will be generated on each push to master (#183) The latest tag will only be generated when a non-beta Github release is created. --- .github/workflows/client.yml | 2 +- .github/workflows/github-release.yml | 12 ++++++++++++ .github/workflows/server.yml | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml index 778d4b7c2b..de83060742 100644 --- a/.github/workflows/client.yml +++ b/.github/workflows/client.yml @@ -229,6 +229,6 @@ jobs: if: success() && github.ref == 'refs/heads/master' run: | docker build -t appsmith/appsmith-editor:${GITHUB_SHA} . - docker build -t appsmith/appsmith-editor:latest . + docker build -t appsmith/appsmith-editor:nightly . echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin docker push appsmith/appsmith-editor \ No newline at end of file diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml index 8fc3683f37..66d53b2030 100644 --- a/.github/workflows/github-release.yml +++ b/.github/workflows/github-release.yml @@ -56,6 +56,12 @@ jobs: - name: Push production image to Docker Hub with commit tag run: | docker build -t appsmith/appsmith-editor:${{steps.get_version.outputs.tag}} . + + # Only build & tag with latest if the tag doesn't contain beta + if [[ ! ${{steps.get_version.outputs.tag}} == *"beta"* ]]; then + docker build -t appsmith/appsmith-editor:latest . + fi + echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin docker push appsmith/appsmith-editor @@ -98,6 +104,12 @@ jobs: - name: Push image to Docker Hub run: | docker build -t appsmith/appsmith-server:${{steps.get_version.outputs.tag}} . + + # Only build & tag with latest if the tag doesn't contain beta + if [[ ! ${{steps.get_version.outputs.tag}} == *"beta"* ]]; then + docker build -t appsmith/appsmith-server:latest . + fi + echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin docker push appsmith/appsmith-server diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml index bae8bd7317..d523607c7d 100644 --- a/.github/workflows/server.yml +++ b/.github/workflows/server.yml @@ -79,6 +79,6 @@ jobs: if: success() && github.ref == 'refs/heads/master' run: | docker build -t appsmith/appsmith-server:${GITHUB_SHA} . - docker build -t appsmith/appsmith-server:latest . + docker build -t appsmith/appsmith-server:nightly . echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin docker push appsmith/appsmith-server