fix: tests #3099
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build image and push to registry | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| tags: | |
| - "**" | |
| - "!**_deploy" | |
| concurrency: | |
| group: ${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-docker: | |
| uses: CyberCRI/github-workflows/.github/workflows/build-push.yaml@main | |
| with: | |
| registry-name: ${{ vars.DOCKER_PROD_REGISTRY }} | |
| image-name: projects-backend | |
| image-tag: ${{ github.sha }} | |
| recursive-submodule-checkout: true | |
| secrets: | |
| submodules-app-private-key: ${{ secrets.INFRA_BOT_APP_PRIVATE_KEY }} | |
| submodules-app-id: ${{ secrets.INFRA_BOT_APP_ID }} | |
| submodules-app-installation-id: ${{ secrets.INFRA_BOT_APP_INSTALLATION_ID }} | |
| registry-username: ${{ secrets.DOCKER_PROD_USERNAME }} | |
| registry-password: ${{ secrets.DOCKER_PROD_PASSWORD }} | |
| build-keycloak-image: | |
| uses: CyberCRI/github-workflows/.github/workflows/build-push.yaml@main | |
| with: | |
| registry-name: ${{ vars.DOCKER_PROD_REGISTRY }} | |
| image-name: projects-backend-keycloak | |
| image-tag: ${{ github.sha }} | |
| recursive-submodule-checkout: true | |
| file: ./keycloak-lpi-theme/theme/Dockerfile | |
| context: ./keycloak-lpi-theme/theme/ | |
| secrets: | |
| submodules-app-private-key: ${{ secrets.INFRA_BOT_APP_PRIVATE_KEY }} | |
| submodules-app-id: ${{ secrets.INFRA_BOT_APP_ID }} | |
| submodules-app-installation-id: ${{ secrets.INFRA_BOT_APP_INSTALLATION_ID }} | |
| registry-username: ${{ secrets.DOCKER_PROD_USERNAME }} | |
| registry-password: ${{ secrets.DOCKER_PROD_PASSWORD }} | |
| lint-and-test: | |
| uses: ./.github/workflows/lint-and-test-workflow.yml | |
| secrets: | |
| submodules-app-private-key: ${{ secrets.INFRA_BOT_APP_PRIVATE_KEY }} | |
| submodules-app-id: ${{ secrets.INFRA_BOT_APP_ID }} | |
| submodules-app-installation-id: ${{ secrets.INFRA_BOT_APP_INSTALLATION_ID }} | |
| registry-username: ${{ secrets.DOCKER_PROD_USERNAME }} | |
| registry-password: ${{ secrets.DOCKER_PROD_PASSWORD }} | |
| with: | |
| registry-name: ${{ vars.DOCKER_PROD_REGISTRY }} | |
| keycloak-image-name: projects-backend-keycloak | |
| keycloak-image-tag: ${{ github.sha }} | |
| backend-image-name: projects-backend | |
| backend-image-tag: ${{ github.sha }} | |
| needs: | |
| - build-docker | |
| - build-keycloak-image | |
| tag-deploy: | |
| needs: | |
| - build-docker | |
| - lint-and-test | |
| uses: CyberCRI/github-workflows/.github/workflows/tag-deploy.yaml@main | |
| tag-deploy-fast: | |
| needs: | |
| - build-docker | |
| uses: CyberCRI/github-workflows/.github/workflows/tag-deploy-fast.yaml@main |