refac(workflow): use matrix to compile different docker images #740
Reference in New Issue
Block a user
Delete Branch "DaanSelen/act_runner:matrix-workflow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have made this to speed up and make it more robust.
The matrix executes the jobs in parallel, doing some things perhaps double. But making overall management easier due to the simple defined variables at the top of the matrix declaration.
@@ -8,0 +10,4 @@- '*'env:DOCKER_ORG: dselenOh yeah that needs to change.
@@ -61,2 +71,2 @@echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUTecho REPO_VERSION=${GITHUB_REF_NAME#v} >> $GITHUB_OUTPUT- name: Echo the tagrun: echo "${{ env.DOCKER_ORG }}/act_runner:nightly${{ matrix.variant.tag_suffix }}"The tags for the nightly release are rather static looking at https://hub.docker.com/r/gitea/act_runner/tags?name=nightly
@@ -63,3 +73,3 @@- name: Build and pushuses: docker/build-push-action@v5uses: docker/build-push-action@v6Bump
Hello @techknowlogick I assume you tested it also and are happy with the results? I would love to hear if this is wanted in the actual release.