Merge branch 'main' of github.com:venetoarpa/arpav-cline-frontend int… #527
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: Continuous Integration | |
| on: | |
| push: | |
| pull_request: | |
| env: | |
| # disabled publishing of docker images | |
| # re-enabling requires that you create a couple of repo secrets: | |
| # - secrets.USER_FOR_REGISTRY - username of a GitHub user that is able to login to the repository's docker registry | |
| # - secrets.PAT_FOR_REGISTRY - GitHub Personal Access Token of the GitHub user that grants it access to publish | |
| # docker images in the repo registry | |
| # PUBLISH_IMAGE: ${{ (github.ref_name == 'main' || github.ref_type == 'tag') && 'TRUE' || 'FALSE'}} | |
| PUBLISH_IMAGE: false | |
| IMAGE_TAG: ${{ github.ref_name == 'main' && 'latest' || github.ref_name }} | |
| IMAGE_NAME: ghcr.io/${{ github.repository }}/${{ github.event.repository.name }} | |
| jobs: | |
| run-dagger-ci: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: grab code | |
| uses: actions/checkout@v4 | |
| - name: login to container registry | |
| if: ${{ env.PUBLISH_IMAGE == 'TRUE' }} | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ secrets.USER_FOR_REGISTRY }} | |
| password: ${{ secrets.PAT_FOR_REGISTRY }} | |
| - name: run ci | |
| uses: dagger/dagger-for-github@v5 | |
| with: | |
| version: "0.14.0" | |
| verb: call | |
| module: continuous-integration | |
| args: >- | |
| build-image | |
| --repo-root-path=. | |
| ${{ env.PUBLISH_IMAGE == 'TRUE' && format('--publish-docker-image {0}:{1}', env.IMAGE_NAME, env.IMAGE_TAG) || ''}} |