Skip to content

Commit

Permalink
Merge pull request #50 from EYBlockchain/liju.jose/fix-github-actions
Browse files Browse the repository at this point in the history
fix failing github actions
  • Loading branch information
LijuJoseJJ authored Mar 11, 2021
2 parents dcbe66b + f74af91 commit ba00aaf
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,27 @@ on:
branches:
- master

env:
IMAGE_REPO: eyblockchain/timber

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: release
- uses: codfish/semantic-release-action@master
id: semantic
uses: codfish/semantic-release-action@v1.2.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: docker login
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin

- name: build docker image
run: docker build ./merkle-tree --tag $IMAGE_REPO
- name: Build docker merkle-tree image
run: docker build ./merkle-tree

- name: docker push latest
run: docker push $IMAGE_REPO
- run: echo ${{ steps.semantic.outputs.release-version }}

- name: docker push release
- name: Docker push version
if: steps.semantic.outputs.new-release-published == 'true'
run: |
docker tag $IMAGE_REPO $IMAGE_REPO:$VERSION_TAG
docker push $IMAGE_REPO:$VERSION_TAG
env:
VERSION_TAG: v${{ steps.semantic.outputs.release-version }}
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 .
docker push docker.pkg.github.com/eyblockchain/timber/timber:$RELEASE_VERSION

0 comments on commit ba00aaf

Please sign in to comment.