Skip to content

Merge pull request #74 from cristiangreco/dependabot/docker/debian-bu… #71

Merge pull request #74 from cristiangreco/dependabot/docker/debian-bu…

Merge pull request #74 from cristiangreco/dependabot/docker/debian-bu… #71

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: linux/amd64,linux/arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log into ghcr.io registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Log into DockerHub registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@v3
with:
images: cristiangreco/pdflatex,ghcr.io/cristiangreco/pdflatex
flavor: latest=true
tags: type=raw,value={{date 'YYYYMMDD'}}
- name: Build and push image
id: build-and-push
uses: docker/build-push-action@v2
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64,linux/arm64