Skip to content

Commit

Permalink
reduced to tag name of smi
Browse files Browse the repository at this point in the history
  • Loading branch information
leecalcote authored Aug 13, 2020
1 parent f618087 commit 9282b72
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
docker tag ${{ secrets.IMAGE_NAME }}:latest ${{ secrets.IMAGE_NAME }}:${GITHUB_SHA::6}
docker push ${{ secrets.IMAGE_NAME }}:latest
docker push ${{ secrets.IMAGE_NAME }}:${GITHUB_SHA::6}
cd ../smi-conformance && docker build --no-cache -t ${{ secrets.IMAGE_NAME }}:smi-conformance .
docker tag ${{ secrets.IMAGE_NAME }}:smi-conformance ${{ secrets.IMAGE_NAME }}:smi-conformance-${GITHUB_SHA::6}
docker push ${{ secrets.IMAGE_NAME }}:smi-conformance
docker push ${{ secrets.IMAGE_NAME }}:smi-conformance-${GITHUB_SHA::6}
cd ../smi-conformance && docker build --no-cache -t ${{ secrets.IMAGE_NAME }}:smi .
docker tag ${{ secrets.IMAGE_NAME }}:smi ${{ secrets.IMAGE_NAME }}:smi-${GITHUB_SHA::6}
docker push ${{ secrets.IMAGE_NAME }}:smi
docker push ${{ secrets.IMAGE_NAME }}:smi-${GITHUB_SHA::6}
- name: Docker tag release & push
if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/') && success()
run: |
docker tag ${{ secrets.IMAGE_NAME }}:latest ${{ secrets.IMAGE_NAME }}:${GITHUB_REF/refs\/tags\//}
docker push ${{ secrets.IMAGE_NAME }}:${GITHUB_REF/refs\/tags\//}
docker tag ${{ secrets.IMAGE_NAME }}:smi-conformance ${{ secrets.IMAGE_NAME }}:smi-conformance-${GITHUB_REF/refs\/tags\//}
docker push ${{ secrets.IMAGE_NAME }}:smi-conformance-${GITHUB_REF/refs\/tags\//}
docker tag ${{ secrets.IMAGE_NAME }}:smi ${{ secrets.IMAGE_NAME }}:smi-${GITHUB_REF/refs\/tags\//}
docker push ${{ secrets.IMAGE_NAME }}:smi-${GITHUB_REF/refs\/tags\//}

0 comments on commit 9282b72

Please sign in to comment.