Build with redhat-actions
Some checks failed
Build and push Docker images / build-and-push (push) Failing after 1m44s

This commit is contained in:
2026-03-12 09:13:47 +00:00
parent 1f3aace239
commit aa65516e0f

View File

@@ -34,13 +34,23 @@ jobs:
sudo apt-get update
sudo apt-get install -y buildah
- name: Build image
run: |
cd ${GITHUB_WORKSPACE}/mlir0c2701f
buildah bud -t ${REGISTRY}/${IMAGE_NAME} -f Dockerfile .
- name: Push image
if: ${{ github.ref == 'refs/heads/main' }}
run: |
buildah login -u niccolon -p ${{ secrets.DOCKERHUB_TOKEN }} ${REGISTRY}
buildah push ${REGISTRY}/${IMAGE_NAME}
- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: latest
containerfiles: |
./mlir0c2701f/Dockerfile
context: ./mlir0c2701f
- name: Push Image
if: github.ref == 'refs/heads/main'
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ${{ env.REGISTRY }}
username: niccolon
password: ${{ secrets.DOCKERHUB_TOKEN }}