Skip to content

fix(deps): update remark/rehype plugins (major) #193

fix(deps): update remark/rehype plugins (major)

fix(deps): update remark/rehype plugins (major) #193

Workflow file for this run

name: build and push to Docker Hub
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
file: Dockerfile
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: |
duskmoon/lod:frontend
ghcr.io/duskmoon314/lod:frontend
cache-from: type=registry,ref=ghcr.io/duskmoon314/lod:frontend
cache-to: type=inline
clean:
runs-on: ubuntu-latest
steps:
- name: Clean untagged versions
uses: duskmoon314/action-delete-ghcr-untagged@v1
with:
token: ${{ secrets.PAT }}
package_name: lod
expiration: 7