Swale push

swaleio/[email protected]

Swale push

Pushes the file or directory at source to a Swale repository. Point source at the mounted workspace (e.g. ${{env.WORKFLOW_STORAGE}}/outputs) to publish artifacts an earlier task wrote there, or at any other container-local path. This is how a run publishes its results back to Swale once the work is done.

target names where to push, in the CLI's own form — <project>/<repository>[:<tag>]. The tag labels the version this push creates and is part of the target rather than a separate input; omit it and the push is tagged latest.

Authentication uses account and token, delivered to the CLI as SWALE_ACCOUNT_NAME and SWALE_ACCOUNT_TOKEN. Pass token as a secret so it never appears in the container's argv, pod spec, or run logs.

Inputs

Input Required Default Description
target yes — Repository to push to, as <project>/<repository>[:<tag>].
source yes — Absolute container path to push (e.g. ${{env.WORKFLOW_STORAGE}}/outputs).
account yes — Swale account name; delivered as SWALE_ACCOUNT_NAME.
token yes — Swale access token (pass a secret); delivered as SWALE_ACCOUNT_TOKEN.

A push records no message; the tag in target is what identifies the version it creates.

Compute

CPU. Data movement only — no GPU is needed, and scheduling it on a GPU compute type wastes money.

Example

name: Swale push example
compute_type: cpu-4
entry_point: main

blocks:
  main:
    tasks:
      publish:
        name: Publish artifacts
        uses: swaleio/swale-push
        args:
          target: acme/model-artifacts:nightly
          source: ${{env.WORKFLOW_STORAGE}}/outputs
          account: acme
          token: ${{secrets.swale_token}}

This pushes ${{env.WORKFLOW_STORAGE}}/outputs to the acme/model-artifacts repository under the nightly tag, authenticating with the acme account and the swale_token secret.


For the workflow syntax these examples use, see the workflow definition reference in the Swale documentation.

Licensed under the MIT License.