Build with redhat-actions
Some checks failed
Build and push Docker images / build-and-push (push) Failing after 1m44s
Some checks failed
Build and push Docker images / build-and-push (push) Failing after 1m44s
This commit is contained in:
28
.github/workflows/docker-build-and-push.yaml
vendored
28
.github/workflows/docker-build-and-push.yaml
vendored
@@ -34,13 +34,23 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y buildah
|
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
|
- name: Build Image
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
id: build-image
|
||||||
run: |
|
uses: redhat-actions/buildah-build@v2
|
||||||
buildah login -u niccolon -p ${{ secrets.DOCKERHUB_TOKEN }} ${REGISTRY}
|
with:
|
||||||
buildah push ${REGISTRY}/${IMAGE_NAME}
|
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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user