Skip to content

chore(deps): update actions/checkout digest to 11bd719 #196

chore(deps): update actions/checkout digest to 11bd719

chore(deps): update actions/checkout digest to 11bd719 #196

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@0ad4b8fadaa221de15dcec353f45205ec38ea70b # 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