try redhat actions again
Some checks failed
Gentoo Utils / build-oci-image (push) Failing after 47s
Gentoo Utils / check-format (push) Has been skipped
Gentoo Utils / docs (push) Has been skipped
Gentoo Utils / grep (push) Has been skipped
Gentoo Utils / build (push) Has been skipped
Gentoo Utils / test (push) Has been skipped
Gentoo Utils / fuzz (push) Has been skipped
Some checks failed
Gentoo Utils / build-oci-image (push) Failing after 47s
Gentoo Utils / check-format (push) Has been skipped
Gentoo Utils / docs (push) Has been skipped
Gentoo Utils / grep (push) Has been skipped
Gentoo Utils / build (push) Has been skipped
Gentoo Utils / test (push) Has been skipped
Gentoo Utils / fuzz (push) Has been skipped
This commit is contained in:
@@ -65,27 +65,49 @@ jobs:
|
|||||||
echo "comparison_hash=$comparison_hash" >> $GITEA_OUTPUT
|
echo "comparison_hash=$comparison_hash" >> $GITEA_OUTPUT
|
||||||
echo "build_image=$build_image" >> $GITEA_OUTPUT
|
echo "build_image=$build_image" >> $GITEA_OUTPUT
|
||||||
cat $GITEA_OUTPUT
|
cat $GITEA_OUTPUT
|
||||||
- name: Set up Docker buildx
|
# - name: Set up Docker buildx
|
||||||
if: steps.image-changes.outputs.build_image == 'true'
|
# if: steps.image-changes.outputs.build_image == 'true'
|
||||||
uses: docker/setup-buildx-action@v3
|
# uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Log in to Github Container Registry
|
# - name: Log in to Github Container Registry
|
||||||
|
# if: steps.image-changes.outputs.build_image == 'true'
|
||||||
|
# uses: docker/login-action@v3
|
||||||
|
# with:
|
||||||
|
# registry: ${{ vars.REGISTRY_URL }}
|
||||||
|
# username: ${{ vars.CI_BOT_USERNAME }}
|
||||||
|
# password: ${{ secrets.CI_BOT_TOKEN }}
|
||||||
|
|
||||||
|
- name: "Buildah: Build image"
|
||||||
|
id: build-image
|
||||||
if: steps.image-changes.outputs.build_image == 'true'
|
if: steps.image-changes.outputs.build_image == 'true'
|
||||||
uses: docker/login-action@v3
|
uses: redhat-actions/buildah-build@v2
|
||||||
with:
|
with:
|
||||||
|
image: ${{ gitea.repository }}
|
||||||
|
tags: ${{ steps.image-changes.outputs.image_tag }}
|
||||||
|
context: "{{defaultContext}}:.docker"
|
||||||
|
containerfiles: |
|
||||||
|
Dockerfile
|
||||||
|
|
||||||
|
- name: Push OCI image
|
||||||
|
id: push-image
|
||||||
|
uses: redhat-actions/push-to-registry@v2
|
||||||
|
with:
|
||||||
|
image: ${{ steps.build-image.outputs.image }}
|
||||||
|
tags: ${{ steps.build-image.outputs.tags }}
|
||||||
registry: ${{ vars.REGISTRY_URL }}
|
registry: ${{ vars.REGISTRY_URL }}
|
||||||
username: ${{ vars.CI_BOT_USERNAME }}
|
username: ${{ vars.CI_BOT_USERNAME }}
|
||||||
password: ${{ secrets.CI_BOT_TOKEN }}
|
password: ${{ secrets.CI_BOT_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push
|
|
||||||
if: steps.image-changes.outputs.build_image == 'true'
|
# - name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
# if: steps.image-changes.outputs.build_image == 'true'
|
||||||
with:
|
# uses: docker/build-push-action@v6
|
||||||
push: true
|
# with:
|
||||||
tags: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ steps.image-changes.outputs.image_tag }}
|
# push: true
|
||||||
context: "{{defaultContext}}:.docker"
|
# tags: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ steps.image-changes.outputs.image_tag }}
|
||||||
cache-from: type=gha
|
# context: "{{defaultContext}}:.docker"
|
||||||
cache-to: type=gha,mode=max
|
# cache-from: type=gha
|
||||||
|
# cache-to: type=gha,mode=max
|
||||||
outputs:
|
outputs:
|
||||||
image_tag: ${{ steps.image-changes.outputs.image_tag }}
|
image_tag: ${{ steps.image-changes.outputs.image_tag }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user