Running continuous integration on tahminator's commits #22
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
| # yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/refs/heads/master/src/schemas/json/github-workflow.json | |
| name: CI | |
| run-name: Running continuous integration on ${{ github.actor }}'s commits | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: ci-cd-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| testBuildImages: | |
| name: Test Build All Docker images | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup pipeline | |
| uses: ./.github/composite/setup | |
| with: | |
| SECRETS: ${{ toJSON(secrets) }} | |
| - name: Build images | |
| uses: ./.github/composite/build-images | |
| with: | |
| VERSION: "test" | |
| SHOULD_UPLOAD: "false" | |
| createTag: | |
| name: Create new tag | |
| runs-on: ubuntu-latest | |
| needs: [testBuildImages] | |
| if: github.ref_name == 'main' | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup pipeline | |
| uses: ./.github/composite/setup | |
| with: | |
| SECRETS: ${{ toJSON(secrets) }} | |
| - name: Create new tag | |
| uses: ./.github/composite/create-tag |