Skip to content

Commit

Permalink
Added SNAPSHOT publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-podzigun committed Nov 17, 2022
1 parent 8751d1f commit cb3a436
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit cb3a436

Please sign in to comment.