Skip to content

try cleaning up old package versions #203

try cleaning up old package versions

try cleaning up old package versions #203

Workflow file for this run

name: build-docker
on:
push:
branches:
- master
- stress-changes
- staging
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/codegrade/hourglass:${{ github.ref_name }}-${{ github.sha }}
- name: Cleanup old images
uses: actions/delete-package-versions@v4
with:
package-name: 'hourglass'
package-type: 'container'
min-versions-to-keep: 20