Skip to content

Commit

Permalink
Merge pull request #78 from cnabio/trishankatdatadog/fix-github-workflow
Browse files Browse the repository at this point in the history
Fix github.ref slug issue
  • Loading branch information
Radu M authored Jun 5, 2020
2 parents 6d43cdd + 88d7b1b commit afba301
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ jobs:
- name: Check out code
uses: actions/checkout@v2

- name: Build and push RELEASE and LATEST Docker images
- name: Inject slug/short variables
uses: rlespinasse/[email protected]

- name: Build and push master/tag and latest Docker images
uses: docker/[email protected]
if: ${{ github.event_name == 'push' || github.event_name == 'release' }}
with:
repository: cnabio/signy-in-toto-verifier
tags: ${{ github.ref}}, latest
tags: ${{ env.GITHUB_REF_SLUG }}, latest
dockerfile: in-toto-container.Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand Down

0 comments on commit afba301

Please sign in to comment.