From 2721ceb82c498345f686755e6b2ba282ae180d09 Mon Sep 17 00:00:00 2001 From: vagabond Date: Fri, 19 Apr 2024 19:09:46 +0000 Subject: [PATCH] Update Actions to try Buildah actions --- .forgejo/workflows/release.yml | 37 +++++++++++++++------------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index b0bf779..35c4970 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -8,7 +8,6 @@ on: - main env: - REGISTRY: forge.niblock.tech REGISTRY_USERNAME: ${{ github.actor }} REGISTRY_PASSWORD: ${{ secrets.REGISTRY_TOKEN }} REGISTRY_IMAGE_NAME: ${{ github.repository }} @@ -20,25 +19,21 @@ jobs: steps: - name: Checkout the repository uses: actions/checkout@v4 - - - name: Login to the GitHub Container Registry - uses: actions/docker-login-action@v3 + + - name: Build the container image using Buildah + id: build-image + uses: https://forge.niblock.tech/actions/buildah-build@v2 with: - registry: ${{ env.REGISTRY }} + image: alpine + tags: latest + containerfiles: ./docker/latest/Dockerfile + + - name: Publish to NibTech Forge Registry + id: publish-image + uses: https://forge.niblock.tech/actions/push-to-registry@v2 + with: + image: ${{ steps.build-image.outputs.image }} + tags: ${{ steps.build-image.outputs.tags }} + registry: forge.niblock.tech/containers username: ${{ env.REGISTRY_USERNAME }} - password: ${{ env.REGISTRY_PASSWORD }} - - - name: Extract repository metadata (tags, labels) - id: meta - uses: actions/docker-metadata-action@v5 - with: - images: ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE_NAME }} - - - name: Build and publish Alpine Latest - uses: actions/docker-build-push-action@v5 - with: - context: .docker/latest - push: true - tags: | - ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE_NAME }}:latest - labels: ${{ steps.meta.outputs.labels }} + password: ${{ env.REGISTRY_PASSWORD }} \ No newline at end of file