Skip to content

Commit

Permalink
Build all verisons and push in one file
Browse files Browse the repository at this point in the history
  • Loading branch information
mandulaj committed Feb 8, 2024
1 parent 46f474e commit 0c301ef
Showing 1 changed file with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Publish Ubuntu 20.04 image"
name: "Publish Ubuntu images"

on:
release:
Expand All @@ -13,6 +13,9 @@ jobs:
permissions:
packages: write
contents: read
strategy:
matrix:
version: [16, 18, 20]
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand All @@ -30,18 +33,18 @@ jobs:
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: |
mandulaj/kalibr
# ghcr.io/${{ github.repository }}
# - name: Extract metadata (tags, labels) for Docker
# id: meta
# uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
# with:
# images: |
# mandulaj/kalibr
# # ghcr.io/${{ github.repository }}

- name: Build and push Docker images
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: Dockerfile_ros1_20_04
file: Dockerfile_ros1_${{ matrix.version }}_04
push: true
tags: mandulaj/kalibr:20.04
tags: mandulaj/kalibr:${{ matrix.version }}.04

0 comments on commit 0c301ef

Please sign in to comment.