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 "build_image=$build_image" >> $GITEA_OUTPUT
|
||||
cat $GITEA_OUTPUT
|
||||
- name: Set up Docker buildx
|
||||
if: steps.image-changes.outputs.build_image == 'true'
|
||||
uses: docker/setup-buildx-action@v3
|
||||
# - name: Set up Docker buildx
|
||||
# if: steps.image-changes.outputs.build_image == 'true'
|
||||
# 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'
|
||||
uses: docker/login-action@v3
|
||||
uses: redhat-actions/buildah-build@v2
|
||||
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 }}
|
||||
username: ${{ vars.CI_BOT_USERNAME }}
|
||||
password: ${{ secrets.CI_BOT_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
if: steps.image-changes.outputs.build_image == 'true'
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ steps.image-changes.outputs.image_tag }}
|
||||
context: "{{defaultContext}}:.docker"
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
# - name: Build and push
|
||||
# if: steps.image-changes.outputs.build_image == 'true'
|
||||
# uses: docker/build-push-action@v6
|
||||
# with:
|
||||
# push: true
|
||||
# tags: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ steps.image-changes.outputs.image_tag }}
|
||||
# context: "{{defaultContext}}:.docker"
|
||||
# cache-from: type=gha
|
||||
# cache-to: type=gha,mode=max
|
||||
outputs:
|
||||
image_tag: ${{ steps.image-changes.outputs.image_tag }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user