Skip to content

- Attempt to generate coverage report for the dmrpp-generator. #35

- Attempt to generate coverage report for the dmrpp-generator.

- Attempt to generate coverage report for the dmrpp-generator. #35

name: Push To Docker hub
on:
push:
tags:
- v*
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Get tag version
id: tag_name
run: echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghrcdaac/dmrpp-generator:${{ steps.tag_name.outputs.SOURCE_TAG }}
- name: Extract coverage report
run: |
CID=$(docker create ghrcdaac/dmrpp-generator:${{ steps.tag_name.outputs.SOURCE_TAG }})
docker cp "${CID}":/home/worker/build/coverage/lcov.info .
docker rm "${CID}"
- name: Coveralls
uses: coverallsapp/github-action@master
with:
run: |
pwd
ls
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: