forked from Archives/Athou_commafeed
create a 'master' docker tag for the latest master version
This commit is contained in:
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@@ -40,18 +40,28 @@ jobs:
|
|||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
- name: Login to Container Registry
|
- name: Login to Container Registry
|
||||||
if: ${{ github.ref_type == 'tag' && matrix.java == '8' }}
|
if: ${{ matrix.java == '8' }}
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Docker build and push
|
- name: Docker build and push tag
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
|
if: ${{ matrix.java == '8' && github.ref_type == 'tag' }}
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
push: true
|
||||||
platforms: linux/amd64,linux/arm/v7
|
platforms: linux/amd64,linux/arm/v7
|
||||||
push: ${{ github.ref_type == 'tag' && matrix.java == '8' }}
|
|
||||||
tags: |
|
tags: |
|
||||||
athou/commafeed:latest
|
athou/commafeed:latest
|
||||||
athou/commafeed:${{ github.ref_name }}
|
athou/commafeed:${{ github.ref_name }}
|
||||||
|
|
||||||
|
- name: Docker build and push master
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
if: ${{ matrix.java == '8' && github.ref_name == 'master' }}
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
platforms: linux/amd64,linux/arm/v7
|
||||||
|
tags: athou/commafeed:master
|
||||||
|
|||||||
Reference in New Issue
Block a user