diff --git a/.github/workflows/actions/deploy/action.yaml b/.github/workflows/actions/deploy/action.yaml index 8f6a14f1..76cc7584 100644 --- a/.github/workflows/actions/deploy/action.yaml +++ b/.github/workflows/actions/deploy/action.yaml @@ -62,6 +62,22 @@ runs: run: | oc version docker version + + # Openshift pipeline is currently running on 14.4.6 version and according to + # the new red hat article - https://access.redhat.com/articles/7042033 + # the Podman auth configuration locations are preferred over Docker configuration locations. + + # In order to avoid the "unauthorized: authentication required error" and + # make github actions job run successfully make sure when we try to login to openshift registry + # we need to define the oc registry login --to="${HOME}/.docker/config.json" in the oc login action step. + + # This was not an issue when Openshift pipeline was running on 14.2 or 14.3 version + # but since Openshift upgraded to 14.4 version it started giving warning + # message : the default reading order of registry auth file will be changed from "${HOME}/.docker/config.json" + # to podman registry config locations in the future version of oc. + # "${HOME}/.docker/config.json" is deprecated, but can still be used for storing credentials + # as a fallback. See https://github.com/containers/image/blob/main/docs/containers-auth.json.5.md for the order + # of podman registry config locations. oc registry login --to="${HOME}/.docker/config.json" - name: Tag the image in the GHCR as ${{ inputs.environment }} diff --git a/.github/workflows/labels.txt b/.github/workflows/labels.txt deleted file mode 100644 index 677b921e..00000000 --- a/.github/workflows/labels.txt +++ /dev/null @@ -1,19 +0,0 @@ -acapy.version=O.10.3 -description=aries-dloudagent provides a base image for running Hyperledger Aries agents in Docker. This -io.buildah.version=126.4 -io.k8s.description=aries-cloudagent provides a base image for running Hyperledger Aries agents in Docker. This -io.k8s.display-name=aries-cloudagent 0.10.3 -io.openshift_build.name=aries-endorser-agent-15 -4a9599-tools -io.openshift.build.namespace= -io.openshift.build.source-context-dir=docker/acapy -maintainer=aries-coudagent -org.opencontainers.image.created=2023-09-29T16:15:13.175Z -org.opencontainers.image.description=Hyperledger Aries Cloud Agent Python (ACA-Py) is a foundation for building decentralized id -org.opencontainers.image.licenses=Apache-2.0 -org.opencontainers.image.revision=736cdfb38b68900b779e6159f8a16d299127fdc8 -org.opencontainers.image.source=https://github.com/hyperledger/aries-cloudagent-python -org.opencontainers.image.title=aries-doudagent-Python -org.opencontainers.image.url=https://github.com/hyperledger/aries-cloudagent-python -Py39-0103 -org.opencontainers.image.version=aries-cloudaaent image \ No newline at end of file diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 1030d633..96d5d72c 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -165,8 +165,8 @@ jobs: tags: ${{ steps.meta.outputs.tags }} outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=Hyperledger Aries Cloud Agent Python (ACA-Py) is a foundation for building decentralized id labels: | - io.openshift.build.source-location: ${{ github.repositoryUrl }} - io.openshift.build.commit.id: ${{ github.sha }} + io.openshift.build.source-location=${{ github.repositoryUrl }} + io.openshift.build.commit.id=${{ github.sha }} # labels: | # acapy.version=0.1O.3 # description = aries-cloudagent provides a base image for running Hyperledger Aries agents in Docker. This @@ -190,7 +190,7 @@ jobs: - name: Pull database image if: contains(fromJSON('["aries-endorser-db"]'), matrix.service) run: | - docker pull ${{ matrix.BUILDER_IMAGE }} + docker pull ${{ matrix.BUILDER_IMAGE }} - name: Extract Values id: extract if: contains(fromJSON('["aries-endorser-db"]'), matrix.service)