ci: fix ci trigger and gitlab image (#4) #1
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: Merge into master - Build and Run Tests | ||
| # if statements modified to avoid: https://stackoverflow.com/questions/69354003/github-action-job-fire-when-previous-job-skipped | ||
| on: | ||
| push: | ||
| branches: ["main"] | ||
| env: | ||
| REGISTRY: ghcr.io | ||
| DOCKERIMAGE: ghcr.io/algebraic-programming/taskr/buildenv | ||
| jobs: | ||
| build-docker-arm64: | ||
| uses: Algebraic-Programming/TaskR/.github/workflows/master-build-workflow.yml@master | ||
|
Check failure on line 15 in .github/workflows/master.yml
|
||
| with: | ||
| os: ubuntu-24.04-arm | ||
| arch: arm64 | ||
| build-docker-amd64: | ||
| uses: Algebraic-Programming/TaskR/.github/workflows/master-build-workflow.yml@master | ||
| with: | ||
| os: ubuntu-24.04 | ||
| arch: amd64 | ||
| push-buildenv-manifest: | ||
| runs-on: ubuntu-latest | ||
| needs: [ build-docker-amd64, build-docker-arm64 ] | ||
| if: | | ||
| always() && | ||
| (contains(needs.build-docker-amd64.result, 'success') || contains(needs.build-docker-amd64.result, 'skipped')) && | ||
| (contains(needs.build-docker-arm64.result, 'success') || contains(needs.build-docker-arm64.result, 'skipped')) | ||
| steps: | ||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
| - name: Log in to the Container registry | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ${{ env.REGISTRY }} | ||
| username: ${{ github.repository_owner }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Create and push manifest images | ||
| run: | ||
| docker buildx imagetools create --tag ${{ env.DOCKERIMAGE }}:latest ${{ env.DOCKERIMAGE }}:amd64-latest ${{ env.DOCKERIMAGE }}:arm64-latest | ||
| compile-and-test-arm64: | ||
| needs: [ push-buildenv-manifest ] | ||
| if: | | ||
| always() && | ||
| (contains(needs.push-buildenv-manifest.result, 'success') || contains(needs.push-buildenv-manifest.result, 'skipped')) | ||
| uses: Algebraic-Programming/TaskR/.github/workflows/master-test-workflow.yml@master | ||
| with: | ||
| os: ubuntu-24.04-arm | ||
| arch: arm64 | ||
| compile-and-test-amd64: | ||
| needs: [ push-buildenv-manifest ] | ||
| if: | | ||
| always() && | ||
| (contains(needs.push-buildenv-manifest.result, 'success') || contains(needs.push-buildenv-manifest.result, 'skipped')) | ||
| uses: Algebraic-Programming/TaskR/.github/workflows/master-test-workflow.yml@master | ||
| with: | ||
| os: ubuntu-24.04 | ||
| arch: amd64 | ||