Skip to content

docke dryrun in parallel #16

docke dryrun in parallel

docke dryrun in parallel #16

name: docker-dryrun

Check failure on line 1 in .github/workflows/pull-docker-dryrun.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pull-docker-dryrun.yml

Invalid workflow file

(Line: 31, Col: 19): Unrecognized named-value: 'env'. Located at position 1 within expression: env.CACHE_ROOTFUL, (Line: 40, Col: 19): Unrecognized named-value: 'env'. Located at position 1 within expression: env.CACHE_ROOTLESS, (Line: 49, Col: 19): Unrecognized named-value: 'env'. Located at position 1 within expression: env.CACHE_ROOTFUL, (Line: 58, Col: 19): Unrecognized named-value: 'env'. Located at position 1 within expression: env.CACHE_ROOTLESS, (Line: 67, Col: 19): Unrecognized named-value: 'env'. Located at position 1 within expression: env.CACHE_ROOTFUL, (Line: 76, Col: 19): Unrecognized named-value: 'env'. Located at position 1 within expression: env.CACHE_ROOTLESS
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
env:
CACHE_ROOTFUL: "type=registry,ref=ghcr.io/go-gitea/gitea:buildcache-rootful"
CACHE_ROOTLESS: "type=registry,ref=ghcr.io/go-gitea/gitea:buildcache-rootless"
jobs:
files-changed:
uses: ./.github/workflows/files-changed.yml
permissions:
contents: read
# dryrun build is slow, so run them parallelly per-platform
container-amd64-rootful:
if: needs.files-changed.outputs.docker == 'true'
needs: files-changed
uses: ./.github/workflows/part-docker-dryrun.yml
with:
platform: linux/amd64
dockerfile: Dockerfile
cache_from: ${{ env.CACHE_ROOTFUL }}
container-amd64-rootless:
if: needs.files-changed.outputs.docker == 'true'
needs: files-changed
uses: ./.github/workflows/part-docker-dryrun.yml
with:
platform: linux/amd64
dockerfile: Dockerfile.rootless
cache_from: ${{ env.CACHE_ROOTLESS }}
container-arm64-rootful:
if: needs.files-changed.outputs.docker == 'true'
needs: files-changed
uses: ./.github/workflows/part-docker-dryrun.yml
with:
platform: linux/arm64
dockerfile: Dockerfile
cache_from: ${{ env.CACHE_ROOTFUL }}
container-arm64-rootless:
if: needs.files-changed.outputs.docker == 'true'
needs: files-changed
uses: ./.github/workflows/part-docker-dryrun.yml
with:
platform: linux/arm64
dockerfile: Dockerfile.rootless
cache_from: ${{ env.CACHE_ROOTLESS }}
container-riscv64-rootful:
if: needs.files-changed.outputs.docker == 'true'
needs: files-changed
uses: ./.github/workflows/part-docker-dryrun.yml
with:
platform: linux/riscv64
dockerfile: Dockerfile
cache_from: ${{ env.CACHE_ROOTFUL }}
container-riscv64-rootless:
if: needs.files-changed.outputs.docker == 'true'
needs: files-changed
uses: ./.github/workflows/part-docker-dryrun.yml
with:
platform: linux/riscv64
dockerfile: Dockerfile.rootless
cache_from: ${{ env.CACHE_ROOTLESS }}