This commit is contained in:
Roger 2024-12-07 21:14:53 -05:00
parent b335c7c5ba
commit a6a400fff1

View file

@ -27,18 +27,18 @@ jobs:
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) - name: Build and push the Docker image (versioned tag)
uses: docker/build-push-action@v5.3.0 uses: docker/build-push-action@v5.3.0
with: with:
context: . context: .
push: true push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/allthemods10:${{ env.SERVER_VERSION }} tags: ${{ secrets.DOCKERHUB_USERNAME }}/allthemods10:${{ env.SERVER_VERSION }}
- name: Build and push the Docker image (latest tag) - name: Build and push the Docker image (latest tag)
if: ${{ github.ref_name == 'main' }} if: ${{ github.ref_name == 'main' }}
uses: docker/build-push-action@v5.3.0 uses: docker/build-push-action@v5.3.0
with: with:
context: . context: .
push: true push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/allthemods10:latest tags: ${{ secrets.DOCKERHUB_USERNAME }}/allthemods10:latest