Skip to content

swithc to root

swithc to root #5

Workflow file for this run

name: Build OpenCV Docker Image
on:
workflow_dispatch:
push:
# paths:
# - 'docker/opencv.Dockerfile'
# branches:
# - master
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: docker/opencv.Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository }}/opencv-builder:latest
ghcr.io/${{ github.repository }}/opencv-builder:4.11.0