name: goal-local-cloud-transfer
spec:
  namespace: examples
  image: docker.io/library/busybox:1.36
  activities:
    - name: produce
      runtime: local
      cpuLimit: "0.1"
      memoryLimit: 16Mi
      run: |
        set -eu
        printf 'akoflow-local-to-gcp\n' > handoff.txt
        test -s handoff.txt
    - name: consume
      runtime: cloud
      cpuLimit: "0.1"
      memoryLimit: 16Mi
      dependsOn: [produce]
      run: |
        set -eu
        test -s handoff.txt
        grep -qx 'akoflow-local-to-gcp' handoff.txt
        printf 'cloud consumed: ' > receipt.txt
        cat handoff.txt >> receipt.txt
  dataDependencies:
    - producerActivity: produce
      consumerActivity: consume
      logicalName: handoff.txt
      sizeBytes: 21
