Skip to content

Bump the npm-dependencies group across 1 directory with 13 updates (#77) #83

Bump the npm-dependencies group across 1 directory with 13 updates (#77)

Bump the npm-dependencies group across 1 directory with 13 updates (#77) #83

Workflow file for this run

name: Docker
on:
push:
branches: [main, master]
workflow_dispatch:
concurrency:
group: docker-${{ github.ref }}
cancel-in-progress: true
jobs:
build_and_push_docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and Push
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Delete old images
uses: snok/container-retention-policy@v2
with:
image-names: ${{ github.event.repository.name }}
cut-off: 1 day ago UTC
timestamp-to-use: updated_at
account-type: personal
token: ${{ secrets.TOKEN }}
untagged-only: true