Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Fixup/tagfix #3

Merged
merged 7 commits into from
Sep 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ on:

env:
REGISTRY: ghcr.io
REPOSITORY_NAME: ${{ github.repository }}
IMAGE_NAME_PREFIX: vortex
REGISTRY_IMAGE: ${{ github.repository }}

jobs:
build-and-push-image:
Expand All @@ -21,8 +20,8 @@ jobs:
fail-fast: false
matrix:
architecture:
- amd64
- arm64
- linux/amd64
- linux/arm64
filename:
- ros2
- ros2-cuda
Expand All @@ -36,14 +35,14 @@ jobs:
uses: actions/checkout@v4

- name: Set up QEMU
if: matrix.architecture != 'amd64'
if: matrix.architecture != 'linux/amd64'
uses: docker/setup-qemu-action@v3

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME_PREFIX }}-${{ matrix.filename }}
images: ${{ env.REGISTRY_IMAGE }}-${{ matrix.filename }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -61,8 +60,8 @@ jobs:
context: .
file: Dockerfile.${{ matrix.filename }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ env.REGISTRY }}/${{ env.REPOSITORY_NAME }}-${{ matrix.filename }}:${{ matrix.architecture }}-latest
tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}-${{ matrix.filename }}:latest
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
platforms: ${{ matrix.platforms }}