From 9354bd2a18581994e7a3e52b25add86a917d846f Mon Sep 17 00:00:00 2001 From: Aram Peres <6775216+aramperes@users.noreply.github.com> Date: Sat, 23 Aug 2025 13:30:41 -0400 Subject: [PATCH] abitibi --- .forgejo/workflows/abitibi.yaml | 34 +++++++++++++++++++++++++++++++++ .forgejo/workflows/website.yaml | 12 ++++++------ 2 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 .forgejo/workflows/abitibi.yaml diff --git a/.forgejo/workflows/abitibi.yaml b/.forgejo/workflows/abitibi.yaml new file mode 100644 index 0000000..5633b04 --- /dev/null +++ b/.forgejo/workflows/abitibi.yaml @@ -0,0 +1,34 @@ +on: + push: + branches: + - master + paths: + - 'website/**' + - '**/website.yaml' +jobs: + build-website-image: + runs-on: docker + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Extract the tag + id: extract_tag + run: echo "::set-output name=tag::$(echo ${{ forge.sha }} | cut -c1-10)" + - name: Install Buildah and Podman + run: apt-get update && apt-get install -y buildah podman + - name: Buildah Build + id: build-image + uses: redhat-actions/buildah-build@v2 + with: + image: aramperes/poire.dev + tags: ${{ steps.extract_tag.outputs.tag }} + context: ./website + containerfiles: ./website/docker/Dockerfile + - name: Push to Registry + uses: https://github.com/redhat-actions/push-to-registry@v2 + with: + image: ${{ steps.build-image.outputs.image }} + tags: ${{ steps.build-image.outputs.tags }} + registry: git.poire.dev + username: ${{ env.FORGEJO_ACTOR }} + password: ${{ secrets.PACKAGE_TOKEN }} diff --git a/.forgejo/workflows/website.yaml b/.forgejo/workflows/website.yaml index 916e5e0..3c9bedd 100644 --- a/.forgejo/workflows/website.yaml +++ b/.forgejo/workflows/website.yaml @@ -3,10 +3,10 @@ on: branches: - master paths: - - 'website/**' - - '**/website.yaml' + - 'abitibi/**' + - '**/abitibi.yaml' jobs: - build: + build-abitibi-image: runs-on: docker steps: - name: Checkout code @@ -20,10 +20,10 @@ jobs: id: build-image uses: redhat-actions/buildah-build@v2 with: - image: aramperes/poire.dev + image: aramperes/abitibi.momoperes.ca tags: ${{ steps.extract_tag.outputs.tag }} - context: ./website - containerfiles: ./website/docker/Dockerfile + context: ./abitibi + containerfiles: ./abitibi/docker/Dockerfile - name: Push to Registry uses: https://github.com/redhat-actions/push-to-registry@v2 with: