Skip to content

💄 Add Graphical Content to Manuscripts Page #3

💄 Add Graphical Content to Manuscripts Page

💄 Add Graphical Content to Manuscripts Page #3

Workflow file for this run

name: Docker Build and Push
on:
push:
branches: ["main"]
tags: ["v*.*.*"]
paths:
- "Dockerfile"
- ".github/workflows/docker-image.yml"
- "livebook/**"
pull_request:
branches: ["main"]
paths:
- "Dockerfile"
- ".github/workflows/docker-image.yml"
- "livebook/**"
jobs:
build-and-push:
# Only run if we have secrets for pushing or if it's a PR from the main repo
if: |
(github.event_name == 'push' && github.repository == 'kagemnikarimu/scriptorium') ||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
if: github.event_name == 'push'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: ${{ secrets.DOCKERHUB_TOKEN != '' }}
tags: |
kagemnikarimu/scriptorium:latest
kagemnikarimu/scriptorium:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max