Skip to content

Commit

Permalink
Add extra tags to docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
oveldman committed Dec 22, 2023
1 parent 5a1d8d6 commit 2405cd9
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/docker-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,29 @@ jobs:
file: ./MadWorld/MadWorld.Backend.API/Dockerfile
push: true
platforms: ${{ env.PLATFORM_BUILDS }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/madworld-api:latest
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/madworld-api:${{ steps.vars.outputs.tag }}
${{ secrets.DOCKERHUB_USERNAME }}/madworld-api:latest
- name: Build and push Identity
uses: docker/build-push-action@v5
with:
context: ${{ env.DEFAULT_CONTEXT }}
file: ./MadWorld/MadWorld.Backend.Identity/Dockerfile
push: true
platforms: ${{ env.PLATFORM_BUILDS }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/madworld-identity:latest
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/madworld-identity:${{ steps.vars.outputs.tag }}
${{ secrets.DOCKERHUB_USERNAME }}/madworld-identity:latest
- name: Build and push Ship Simulator API
uses: docker/build-push-action@v5
with:
context: ${{ env.DEFAULT_CONTEXT }}
file: ./MadWorld/MadWorld.ShipSimulator.API/Dockerfile
push: true
platforms: ${{ env.PLATFORM_BUILDS }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/madworld-shipsimulator-api:latest
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/madworld-shipsimulator-api:${{ steps.vars.outputs.tag }}
${{ secrets.DOCKERHUB_USERNAME }}/madworld-shipsimulator-api:latest
- name: Build and push Admin
uses: docker/build-push-action@v5
Expand All @@ -58,20 +64,26 @@ jobs:
file: ./MadWorld/MadWorld.Frontend.Admin/Dockerfile
push: true
platforms: ${{ env.PLATFORM_BUILDS }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/madworld-admin:latest
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/madworld-admin:${{ steps.vars.outputs.tag }}
${{ secrets.DOCKERHUB_USERNAME }}/madworld-admin:latest
- name: Build and push UI
uses: docker/build-push-action@v5
with:
context: ${{ env.DEFAULT_CONTEXT }}
file: ./MadWorld/MadWorld.Frontend.UI/Dockerfile
push: true
platforms: ${{ env.PLATFORM_BUILDS }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/madworld-ui:latest
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/madworld-ui:${{ steps.vars.outputs.tag }}
${{ secrets.DOCKERHUB_USERNAME }}/madworld-ui:latest
- name: Build and push Ship Simulator UI
uses: docker/build-push-action@v5
with:
context: ${{ env.DEFAULT_CONTEXT }}
file: ./MadWorld/MadWorld.ShipSimulator.UI/Dockerfile
push: true
platforms: ${{ env.PLATFORM_BUILDS }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/madworld-shipsimulator-ui:latest
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/madworld-shipsimulator-ui:${{ steps.vars.outputs.tag }}
${{ secrets.DOCKERHUB_USERNAME }}/madworld-shipsimulator-ui:latest

0 comments on commit 2405cd9

Please sign in to comment.