Skip to content

Update Rust crate boring to v5 #29

Update Rust crate boring to v5

Update Rust crate boring to v5 #29

Workflow file for this run

name: Docker Build
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
docker-build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
submodules: recursive
- name: Set up Docker Buildx
id: setup-buildx
uses: docker/setup-buildx-action@v4
- name: Cache BuildKit cache mounts
id: cache-mounts
uses: actions/cache@v5
with:
path: buildkit-cache
key: ${{ runner.os }}-buildkit-${{ hashFiles('Dockerfile') }}
restore-keys: |
${{ runner.os }}-buildkit-
- name: Restore Docker cache mounts
uses: reproducible-containers/buildkit-cache-dance@v3
with:
builder: ${{ steps.setup-buildx.outputs.name }}
cache-dir: buildkit-cache
dockerfile: Dockerfile
skip-extraction: ${{ steps.cache-mounts.outputs.cache-hit }}
- name: Log in to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build Docker image
uses: docker/build-push-action@v7
with:
context: .
file: Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: 1337kavin/usque-rs:latest
cache-from: type=gha
cache-to: type=gha,mode=max