Merge pull request #157 from EYBlockchain/swati/updateImages #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: codfish/semantic-release-action@master | |
id: semantic | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Build docker merkle-tree image | |
run: docker build ./merkle-tree | |
- run: echo ${{ steps.semantic.outputs.release-version }} | |
- name: Docker push version | |
if: steps.semantic.outputs.new-release-published == 'true' | |
run: | | |
docker login https://docker.pkg.github.com -u $GITHUB_ACTOR -p $GITHUB_TOKEN | |
docker build -t docker.pkg.github.com/eyblockchain/timber/timber:$RELEASE_VERSION ./merkle-tree | |
docker push docker.pkg.github.com/eyblockchain/timber/timber:$RELEASE_VERSION | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |