Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Add source of slides used in OpenHarmony Tutorial #19

Add source of slides used in OpenHarmony Tutorial

Add source of slides used in OpenHarmony Tutorial #19

name: Docker latex image
on:
push:
paths:
- slides/Dockerfile
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-latex-docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/open-s4c/latex
tags: |
type=edge,branch=main
type=raw,latest
- name: Log in to the Container registry
uses: docker/login-action@v3.0.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup docker buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
uses: docker/build-push-action@v5.1.0
with:
context: .github
file: "slides/Dockerfile"
cache-from: type=gha
cache-to: type=gha,mode=max
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}