From 81d9357e83860d16bfb9bd0ca1a087315c8680e5 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 2 Jun 2024 17:10:54 +0200 Subject: [PATCH] fixup! WIP Add CI --- .forgejo/workflows/build.yaml | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 76b204e..c70d6e7 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -3,10 +3,25 @@ on: [push] jobs: ls: runs-on: docker - container: - image: quay.io/buildah/stable steps: - - uses: https://code.forgejo.org/actions/checkout@v4 - - run: | - ls -l - buildah build --layers -t osu --build-arg OSU_VERSION=2024.412.1 --jobs 0 + - name: Checkout + uses: https://code.forgejo.org/actions/checkout@v4 + - name: Build + uses: redhat-actions/buildah-build@v2 + with: + image: git.sbruder.de/containers/osu + #tags: latest + containerfiles: | + ./Containerfile + layers: true + oci: true + - name: Push + id: push + uses: redhat-actions/push-to-registry@v2 + 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 }}"