Skip to content

Bump actions/setup-node from 3 to 4 #114

Bump actions/setup-node from 3 to 4

Bump actions/setup-node from 3 to 4 #114

name: publish-container
on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: '0 0 1 * *'
permissions:
contents: read
packages: write
jobs:
publish-container:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ github.repository }}
tags: latest
containerfiles: Containerfile
- name: Push to ghcr.io
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Delete old image versions
uses: actions/delete-package-versions@v4
with:
package-name: ${{ github.event.repository.name }}
package-type: container
min-versions-to-keep: 10