I want to build the images in diferent jobs, to build the arm64 one in a self hosted runner, how can i push them together, so they won overwrite?
name: Docker build and publish
on:
workflow_dispatch:
jobs:
build_amd64:
name: Build amd64
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Build Docker image
id: docker_build
uses: docker/build-push-action@v5
with:
platforms: linux/amd64
push: false
tags: ghcr.io/montejojorge/electrs-ui:latest
build_arm64:
name: Build arm64
runs-on: [self-hosted, linux, ARM64]
steps:
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Build Docker image
id: docker_build
uses: docker/build-push-action@v5
with:
platforms: linux/arm64
push: false
tags: ghcr.io/montejojorge/electrs-ui:latest
If i login to a registry, and set push to true the one who finish first will be overwrited by the last.