Skip to content

update actions

update actions #19

Workflow file for this run

name: Build Image
on:
push:
branches:
- main
paths:
- .github/workflows/build-image.yml
- Dockerfile
- scripts/pptx2video.py
- requirements.txt
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 1
- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
- name: Login to GitHub Container Registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
with:
context: .
file: Dockerfile
push: true
platforms: linux/amd64
tags: |
ghcr.io/${{ github.repository_owner }}/pptx2video:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Repository Dispatch
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
bash dispatch-event.sh drengskapur/pptx2video image-push