chore(gitignore): add .DS_Store
and .env
#9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build and publish LaTeX devcontainer to ghcr.io" | |
on: | |
push: | |
paths: | |
- "templates/src/latex/Dockerfile" | |
- ".github/workflows/build-latex-devcontainer.yaml" | |
workflow_dispatch: | |
jobs: | |
build-push-image: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: "Checkout repository" | |
uses: "actions/checkout@v3" | |
- name: "Setup QEMU" | |
uses: "docker/setup-qemu-action@v2" | |
- name: "Setup Docker `buildx`" | |
uses: "docker/setup-buildx-action@v2" | |
- name: "Login to `ghcr.io`" | |
uses: "docker/login-action@v2" | |
with: | |
registry: "ghcr.io" | |
username: "${{ github.actor }}" | |
password: "${{ secrets.GITHUB_TOKEN }}" | |
- name: "Login to `docker.io`" | |
uses: "docker/login-action@v2" | |
with: | |
registry: "docker.io" | |
username: "${{ secrets.DOCKERHUB_USERNAME }}" | |
password: "${{ secrets.DOCKERHUB_TOKEN }}" | |
- name: "Extract Metadata for Docker" | |
id: "meta" | |
uses: "docker/metadata-action@v4" | |
with: | |
images: | | |
ghcr.io/${{ github.actor }}/latex-devcontainer | |
docker.io/${{ secrets.DOCKERHUB_USERNAME }}/latex-devcontainer | |
- name: "Build and Push Docker image" | |
uses: "docker/build-push-action@v3" | |
with: | |
context: "latex" | |
platforms: "linux/amd64,linux/arm64" | |
push: true | |
tags: "${{ steps.meta.outputs.tags }}" | |
labels: "${{ steps.meta.outputs.labels }}" |