Skip to content

lowercase name

lowercase name #6

Workflow file for this run

name: Docker CI
env:
IMAGE_NAME: opensfm
IMAGE_VERSION: 1.0.0
REGISTRY: ghcr.io
IMAGE_PREFIX: m2rt
on: [push, pull_request]
jobs:
build-test:
name: Build docker and run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch,suffix=-{{ sha }}
type=ref,event=tag
type=ref,event=pr
- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
file: Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_VERSION }},${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/${{ env.IMAGE_NAME }}:latest
labels: ${{ steps.meta.outputs.labels }}