mirror of https://github.com/aminya/setup-cpp
ci: tag latest in the same step [skip ci]
This commit is contained in:
parent
526d06e31f
commit
c8e2110f69
|
@ -258,17 +258,7 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
file: ./dev/docker/ci/${{ matrix.container.file }}
|
file: ./dev/docker/ci/${{ matrix.container.file }}
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:${{ matrix.container.tag }}
|
tags: ${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:${{ matrix.container.tag }},${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.container.image }}:latest
|
||||||
|
|
||||||
- name: Tag
|
|
||||||
run: |
|
|
||||||
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
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
|
Loading…
Reference in New Issue