Skip to content

📝 Fix Path on README.md to Logo #1

📝 Fix Path on README.md to Logo

📝 Fix Path on README.md to Logo #1

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.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