CI - Modify Push Docker Image action to build and push Docker image to linux/amd64 and linux/arm64 architectures

This commit is contained in:
Juansecu 2024-05-11 17:21:15 -05:00
parent 3bb1148cd2
commit 7a3c8d0071

View File

@ -10,6 +10,11 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
platforms:
- linux/amd64
- linux/arm64
steps:
- uses: actions/checkout@v4
- name: Retrieve major version
@ -28,5 +33,6 @@ jobs:
with:
context: .
file: ./Dockerfile
platforms: ${{ matrix.platforms }}
push: true
tags: ${{ secrets.DOCKERHUB_REPOSITORY }}:${{ github.ref_name }},${{ secrets.DOCKERHUB_REPOSITORY }}:${{ steps.split.outputs._0 }},${{ secrets.DOCKERHUB_REPOSITORY }}:latest