revert 2721ceb82c
Some checks failed
Release / Release (push) Failing after 2s

revert Update Actions to try Buildah actions
This commit is contained in:
Bill Niblock 2024-04-19 19:18:48 +00:00
parent 2721ceb82c
commit c28856f8c9

View file

@ -8,6 +8,7 @@ on:
- main - main
env: env:
REGISTRY: forge.niblock.tech
REGISTRY_USERNAME: ${{ github.actor }} REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_TOKEN }} REGISTRY_PASSWORD: ${{ secrets.REGISTRY_TOKEN }}
REGISTRY_IMAGE_NAME: ${{ github.repository }} REGISTRY_IMAGE_NAME: ${{ github.repository }}
@ -19,21 +20,25 @@ jobs:
steps: steps:
- name: Checkout the repository - name: Checkout the repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Build the container image using Buildah
id: build-image
uses: https://forge.niblock.tech/actions/buildah-build@v2
with:
image: alpine
tags: latest
containerfiles: ./docker/latest/Dockerfile
- name: Publish to NibTech Forge Registry - name: Login to the GitHub Container Registry
id: publish-image uses: actions/docker-login-action@v3
uses: https://forge.niblock.tech/actions/push-to-registry@v2
with: with:
image: ${{ steps.build-image.outputs.image }} registry: ${{ env.REGISTRY }}
tags: ${{ steps.build-image.outputs.tags }}
registry: forge.niblock.tech/containers
username: ${{ env.REGISTRY_USERNAME }} username: ${{ env.REGISTRY_USERNAME }}
password: ${{ env.REGISTRY_PASSWORD }} 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 }}