Skip to content

Update actions/checkout action to v4 #22

Update actions/checkout action to v4

Update actions/checkout action to v4 #22

Workflow file for this run

name: Push updated RTSPtoWeb image
on:
workflow_dispatch:
push:
paths:
- '.github/workflows/rtsptoweb_push.yml'
branches:
- main
pull_request:
paths:
- '.github/workflows/rtsptoweb_push.yml'
jobs:
push:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
repository: deepch/RTSPtoWebRTC
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_REGISTRY_TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v4
with:
push: ${{ github.ref == 'refs/heads/main' }}
context: ./
tags: |
ghcr.io/${{ github.repository_owner }}/rtsptoweb:${{ github.sha }}
ghcr.io/${{ github.repository_owner }}/rtsptoweb:latest