Skip to content

Merge pull request #4 from utkarshayachit/fixes #10

Merge pull request #4 from utkarshayachit/fixes

Merge pull request #4 from utkarshayachit/fixes #10

name: container-image
on:
push:
branches:
- "main"
tags:
- "v*"
jobs:
docker:
strategy:
matrix:
flavor: [osmesa, egl]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ secrets.DOCKERHUB_USERNAME }}/vizer
flavor: |
prefix=${{ matrix.flavor }}-,onlatest=true
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.${{ matrix.flavor }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}