Skip to content

Make downlod bars toggleable, set X-API-Time correctly when cached #34

Make downlod bars toggleable, set X-API-Time correctly when cached

Make downlod bars toggleable, set X-API-Time correctly when cached #34

Workflow file for this run

name: Build and Publish
on:
workflow_dispatch:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Fetch docker metadata
id: docker_meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/creeperkatze/modfolio
labels: |
org.opencontainers.image.source=https://github.com/creeperkatze/modfolio
- name: Login to GitHub Images
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
file: Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
cache-from: type=registry,ref=ghcr.io/creeperkatze/modfolio:main
cache-to: type=inline