update
This commit is contained in:
parent
b335c7c5ba
commit
a6a400fff1
1 changed files with 14 additions and 14 deletions
28
.github/workflows/docker-hub.yml
vendored
28
.github/workflows/docker-hub.yml
vendored
|
|
@ -26,19 +26,19 @@ jobs:
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push the Docker image (versioned tag)
|
||||||
|
uses: docker/build-push-action@v5.3.0
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: ${{ secrets.DOCKERHUB_USERNAME }}/allthemods10:${{ env.SERVER_VERSION }}
|
||||||
|
|
||||||
- name: Build and push the Docker image (versioned tag)
|
- name: Build and push the Docker image (latest tag)
|
||||||
uses: docker/build-push-action@v5.3.0
|
if: ${{ github.ref_name == 'main' }}
|
||||||
with:
|
uses: docker/build-push-action@v5.3.0
|
||||||
context: .
|
with:
|
||||||
push: true
|
context: .
|
||||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/allthemods10:${{ env.SERVER_VERSION }}
|
push: true
|
||||||
|
tags: ${{ secrets.DOCKERHUB_USERNAME }}/allthemods10:latest
|
||||||
- name: Build and push the Docker image (latest tag)
|
|
||||||
if: ${{ github.ref_name == 'main' }}
|
|
||||||
uses: docker/build-push-action@v5.3.0
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
push: true
|
|
||||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/allthemods10:latest
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue