diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 6815ddf4..cafb3d26 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -35,12 +35,12 @@ jobs: SOURCE_IMAGE_TAG: "" REGISTRY_USERNAME_SECRET_NAME: ARTIFACTORY_USERNAME REGISTRY_PASSWORD_SECRET_NAME: ARTIFACTORY_PASSWORD - # - service: aries-endorser-db - # GIT_REPO_URL: hyperledger/aries-endorser-service - # GIT_REF: "" - # BRANCH: move-tests-to-askar - # PATH: docker/wallet/config - # BUILDER_IMAGE: 'quay.io/fedora/postgresql-13:13' + - service: aries-endorser-db + GIT_REPO_URL: hyperledger/aries-endorser-service + GIT_REF: "" + BRANCH: move-tests-to-askar + PATH: docker/wallet/config + BUILDER_IMAGE: 'quay.io/fedora/postgresql-13:13' - service: aries-endorser-backup GIT_REPO_URL: BCDevOps/backup-container GIT_REF: "" @@ -165,26 +165,26 @@ jobs: if: contains(fromJSON('["aries-endorser-db"]'), matrix.service) run: echo "tags=$(echo '${{ steps.meta.outputs.tags }}' | grep -oE ':([^[:space:]]+)' | sed '/workflow/d' | sed 's/://g' | tr '\n' ' ')" >> $GITHUB_OUTPUT - # - name: Build database image - # id: build_image - # if: contains(fromJSON('["aries-endorser-db"]'), matrix.service) - # uses: redhat-actions/s2i-build@v2 - # with: - # path_context: ${{ matrix.PATH }} - # # Builder image for a java project - # builder_image: ${{ matrix.BUILDER_IMAGE }} - # image: ${{ env.GITHUB_IMAGE_REPO }}${{ matrix.service }} - # tags: ${{ steps.extract.outputs.tags }} + - name: Build database image + id: build_image + if: contains(fromJSON('["aries-endorser-db"]'), matrix.service) + uses: redhat-actions/s2i-build@v2 + with: + path_context: ${{ matrix.PATH }} + # Builder image for a java project + builder_image: ${{ matrix.BUILDER_IMAGE }} + image: ${{ env.GITHUB_IMAGE_REPO }}${{ matrix.service }} + tags: ${{ steps.extract.outputs.tags }} - # - name: Push database image - # id: push - # if: contains(fromJSON('["aries-endorser-db"]'), matrix.service) - # uses: redhat-actions/push-to-registry@v2 - # with: - # tags: ${{ steps.build_image.outputs.tags }} - # image: ${{ steps.build_image.outputs.image }} - # username: ${{ github.actor }} - # password: ${{ secrets.GITHUB_TOKEN }} + - name: Push database image + id: push + if: contains(fromJSON('["aries-endorser-db"]'), matrix.service) + uses: redhat-actions/push-to-registry@v2 + with: + tags: ${{ steps.build_image.outputs.tags }} + image: ${{ steps.build_image.outputs.image }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Display ${{ matrix.service }} image results id: digests