Skip to content

ci: fix ci trigger and gitlab image (#4) #1

ci: fix ci trigger and gitlab image (#4)

ci: fix ci trigger and gitlab image (#4) #1

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / .github/workflows/master.yml

Invalid workflow file

error parsing called workflow ".github/workflows/master.yml" -> "Algebraic-Programming/TaskR/.github/workflows/master-build-workflow.yml@master" : failed to fetch workflow: reference to workflow should be either a valid branch, tag, or commit
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