Skip to content

Commit

Permalink
Merge pull request #3 from ContainerSolutions/publish-docker-image
Browse files Browse the repository at this point in the history
Publish docker image
  • Loading branch information
witold-gren authored Jul 24, 2020
2 parents f0a54db + 031641b commit cd9439f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,19 @@ jobs:
- name: Run Code Coverage
run: |
make coverage
publish:
needs: [build]
name: Publish docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Push to Docker Hub
uses: docker/build-push-action@v1
if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/master')
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: containersol/prom-metrics-check
tag_with_ref: true
tag_with_sha: true

0 comments on commit cd9439f

Please sign in to comment.