2024-06-02 16:54:09 +02:00
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
ls:
|
|
|
|
runs-on: docker
|
|
|
|
steps:
|
2024-06-02 17:17:58 +02:00
|
|
|
- name: Set up buildah
|
|
|
|
run: |
|
|
|
|
apt update
|
|
|
|
apt -y install buildah
|
2024-06-02 17:10:54 +02:00
|
|
|
- name: Checkout
|
|
|
|
uses: https://code.forgejo.org/actions/checkout@v4
|
|
|
|
- name: Build
|
2024-06-02 17:13:06 +02:00
|
|
|
uses: https://github.com/redhat-actions/buildah-build@v2
|
2024-06-02 17:10:54 +02:00
|
|
|
with:
|
|
|
|
image: git.sbruder.de/containers/osu
|
|
|
|
#tags: latest
|
|
|
|
containerfiles: |
|
|
|
|
./Containerfile
|
|
|
|
layers: true
|
|
|
|
oci: true
|
|
|
|
- name: Push
|
|
|
|
id: push
|
2024-06-02 17:13:06 +02:00
|
|
|
uses: https://github.com/redhat-actions/push-to-registry@v2
|
2024-06-02 17:10:54 +02:00
|
|
|
with:
|
|
|
|
image: ${{ steps.build-image.outputs.image }}
|
|
|
|
tags: ${{ steps.build-image.outputs.tags }}
|
|
|
|
#username: quay-user
|
|
|
|
#password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
|
|
- name: Print image url
|
|
|
|
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"
|