From cb3a4367f1cd80ba6d16c4637cc662bfd857802f Mon Sep 17 00:00:00 2001 From: Viktor Podzigun Date: Thu, 17 Nov 2022 21:42:16 +0100 Subject: [PATCH] Added SNAPSHOT publishing --- .github/workflows/ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d85812..dcbfdfc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,9 +69,17 @@ jobs: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} - name: Publish SNAPSHOT - run: - echo "TODO - Publish latest version" + run: | + VERSION="SNAPSHOT" + echo "Publish version=$VERSION" + version=$VERSION sbt clean ";set Global / scalaJSStage := FullOptStage ;project scommons-admin-server" docker:publishLocal + docker tag scommons-admin-server:$VERSION scommons/admin:$VERSION + docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_TOKEN + docker push scommons/admin:$VERSION if: ${{ !github.event.pull_request && env.TAG_NAME == '' }} + env: + DOCKER_HUB_USER: ${{ secrets.DOCKER_HUB_USER }} + DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }} - name: Publish RELEASE run: |