mirror of https://github.com/aminya/setup-cpp
ci: push the latest only on master [skip test]
This commit is contained in:
parent
1f53bd746a
commit
526d06e31f
|
@ -263,6 +263,11 @@ jobs:
|
||||||
- name: Tag
|
- name: Tag
|
||||||
run: |
|
run: |
|
||||||
docker tag ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:${{ matrix.container.tag }} ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:latest
|
docker tag ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:${{ matrix.container.tag }} ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:latest
|
||||||
|
|
||||||
|
- name: Push Latest
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
|
run: |
|
||||||
|
docker login -u ${{ vars.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
docker push ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:latest
|
docker push ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:latest
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
|
|
Loading…
Reference in New Issue