28 lines
743 B
YAML
28 lines
743 B
YAML
name: Build container
|
|
on:
|
|
push:
|
|
schedule:
|
|
- cron: '0 16 * * FRI'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Build
|
|
uses: redhat-actions/buildah-build@v2
|
|
with:
|
|
image: ${{ github.actor }}/${{ github.event.repository.name }}
|
|
tags: latest
|
|
containerfiles: |
|
|
./Containerfile
|
|
- name: Push
|
|
uses: redhat-actions/push-to-registry@v2
|
|
with:
|
|
image: ${{ github.actor }}/${{ github.event.repository.name }}
|
|
tags: latest
|
|
extra-args: --compression-format zstd:chunked
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|