From 9e1dcb4996699f79af841ffc853bab051a059855 Mon Sep 17 00:00:00 2001 From: iko Date: Fri, 6 Aug 2021 12:17:20 +0300 Subject: [PATCH] Push nightly images to docker hub (#63) --- .github/workflows/build.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ab7ecd4..e70ebbf 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -94,7 +94,7 @@ jobs: - name: Login to DockerHub id: login-docker-hub - if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/staging' + if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/develop' uses: docker/login-action@v1 with: username: ${{ secrets.DOCKERHUB_USERNAME }} @@ -112,6 +112,18 @@ jobs: docker tag $image_name typeable/octopod:latest docker push typeable/octopod:latest + - name: Push Nightly Docker Images to DockerHub + if: github.ref == 'refs/heads/develop' + run: | + # push docker images to DockerHub + image_name=`cat octo-docker | docker load | awk '{print $3}'` + docker tag $image_name typeable/octo:nightly + docker push typeable/octo:nightly + + image_name=`cat octopod-server-docker | docker load | awk '{print $3}'` + docker tag $image_name typeable/octopod:nightly + docker push typeable/octopod:nightly + - name: Rename Docker image archives run: | mv octo-docker octo-cli-image.tar.gz